1.0.0 • Published 1 year ago
itemsdat-tool v1.0.0
items.dat Decoder & Encoder
A simple tool to decode and encode items.dat files, with support for version 18 of the file format.
Features
- Decode: Convert
items.datfiles into a JSON format. - Encode: Convert JSON files back into the
items.datformat. - Support: Compatible with
items.datversion 18.
Installation
To use this tool, you need to install the itemsdat-tool package.
npm install itemsdat-toolUsage
Encoding JSON to items.dat
To encode an items.json file into an items.dat file:
const itemsDat = require('itemsdat-tool');
itemsDat.encode('path/to/items.json', 'path/to/output/directory');Decoding items.dat to JSON
To decode an items.dat file into a JSON file:
const itemsDat = require('itemsdat-tool');
itemsDat.decode('path/to/items.dat', 'path/to/output/directory');Example
Here is an example of how to decode an items.dat file:
const itemsDat = require('itemsdat-tool');
itemsDat.decode('items.dat', 'output');Notes
- Ensure that the output directory exists before running the encode or decode functions. If it doesn't exist, the tool will automatically create it for you.
- The tool is specifically designed to work with
items.datversion 18.