1.1.1-alpha • Published 5 years ago

minecraft-documentation-extractor v1.1.1-alpha

Weekly downloads
1
License
GPL-3.0-or-later
Repository
github
Last release
5 years ago

minecraft-documentation-extractor

This is a script which extracts data from minecraft addon documentation.

To use this script, you need the Documentation_Scripting.html (or Documentation_Addons.html) file from the vanilla addon files.

Using as a command line program

First, install this script globally with:

npm install -g minecraft-documentation-extractor

You can then execute

minecraft-documentation-extractor --scripting ./Documentation_Scripting.html

to parse the Documentation_Scripting.html file and print the documentation in JSON format to the console. To write the output to a file documentation.json, do

minecraft-documentation-extractor --scripting ./Documentation_Scripting.html ./documentation.json

Using as a library

Install it with:

npm install minecraft-documentation-extractor

Example code:

const { MinecraftScriptDocumentation } = require("minecraft-documentation-extractor");

async function myFunction() {
    const documentation = await MinecraftScriptDocumentation.fromFile("./Documentation_Scripting.html");
    for (const component of documentation.components) {
        console.log(component.name);
    }
}

License

You can use this script under the terms of the GNU General Public License, either version 3, or (at your option) any later version. For more information see LICENSE.

1.1.1-alpha

5 years ago

1.1.0-alpha

5 years ago

1.0.0-alpha

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

6 years ago