mojangson.js
v1.0.2
Published
A lightweight mojangson parser
Downloads
1
Readme
mojangson.js
A lightweight mojangson parser
Usage
Import
// CommonJS
const { Parser } = require("mojangson.js");
// Web
import Parser from "./mojangson/main.js";
// Or ESM, TypeScript?
import Parser from "mojangson.js";
Web (Optional)
If you want to use it on the web, you need to download and compile this project.
Step 1, Download files from here
Step 2, Unzip it.
Step 3, Copy and paste into your static directory.
Use parser
// input: string
Parser.parse(input); // -> NBTCompound