json-to-nbt
A converter to convert json to nbt!
install
npm i json-to-nbt -g
Usage
cli
json-to-nbt <file>
json-to-nbt <path to file>
cli options
Option | Default Value | Description |
---|---|---|
--name | '' |
Specify the name of the first compound |
--compress | false |
Commpresses the nbt file with gzip |
javascript
const { jsonToNBT } = require('json-to-nbt');
typescript
import { jsonToNBT } from 'json-to-nbt';
Development
- [ ] split fuctions into mutilple files
- [x] allow use as a lib
- [x] first compound naming
- [X] compression
Please report any bugs found in bug reports