1.0.2 • Published 5 months ago

mojangson.js v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

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
1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago