A lib to extract, parse, modify and save.miz files from DCS World
🏠 Homepage
npm install dcs-mission-parser
▸ Const
newMission(missionFilePath
: string, missionOutputPath
: string): Promise<Mission>
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();
👤 Ked
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a ⭐️ if this project helped you!
Copyright © 2020 Ked.
This project is Apache--2.0 licensed.
This README was generated with ❤️ by readme-md-generator