Warcrafty is a library used to read / write blizzard's dbc / db2 file writed with javascript.
yarn add warcrafty
const { DBC } = require("warcrafty");
DBC.read("path/to/your/file/Item.dbc").then((dbc) => {
// Your code.
});
DBC.write("path/to/your/file/Item.dbc", records).then(() => {
// Your code.
});
const { DB2 } = require("warcrafty");
let db2 = new DB2("path/to/your/file/Item.dbc");
let records = db2.build();
// Your code.
Seem like there's no need to write db2 files since hotfix can override it, so warcrafty doesn't provide a function to write db2 files.