nbt parser
A Named Binary Tag (nbt) command line tool for macos / linux. This tool allows reading nbt files and outputing to xml for manual editing. When editing is completed the file can be converted back to .nbt format.
Installation
Download the executable from the releases tab, or compile with shards build --release
Usage
Show usage and help
nbt --help
Converting files
- File format will be detected by the extension of the input and output arguments.
- Use
-f
to specify the output format - Output will be to standard out (stdout) unless
-o
is specified.
Convert an nbt file to xml
nbt -i input.dat -o output.xml
Convert an xml file to nbt
nbt -i input.xml -o output.dat
Development
Make sure tests are passing crystal spec
and submit a PR.
Contributing
- Fork it (https://github.com/sleepinginsomniac/nbt_parser/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request