New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

minecraft-documentation-extractor

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minecraft-documentation-extractor

Extracts minecraft documentation from HTML files

latest
Source
npmnpm
Version
1.1.1-alpha
Version published
Maintainers
2
Created
Source

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.

FAQs

Package last updated on 05 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts