Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Ked57/dcs-mission-parser

Repository files navigation

Welcome to dcs-mission-parser 👋

Version Documentation Maintenance License: Apache--2.0 Twitter: ked57\_

A lib to extract, parse, modify and save.miz files from DCS World

Install

npm install dcs-mission-parser

Usage

newMission

ConstnewMission(missionFilePath: string, missionOutputPath: string): Promise<Mission>

Parameters:

Name Type Description
missionFilePath string The path to the mission file
missionOutputPath string The desired output path to save the mission

Returns: Promise<Mission>

This function will enable you to init the parser, then you have several functions to help you parse to JSON and back to LUA.

const mission = await newMission(
    "example_mission.miz",
    "example_mission_updated.miz"
  );
// To get the JSON Mission Object parsed from the mission file
const JSONMissionObject = await mission.toJSON();
// Once you're done modifying the mission file, you can save it with this function and it will write it to your disk at the path specified earlier
await mission.save();

Author

👤 Ked

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2020 Ked.
This project is Apache--2.0 licensed.


This README was generated with ❤️ by readme-md-generator

About

A lib to extract, parse, modify and save.miz files from DCS World

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published