dnt-readerjs
v0.0.12
Published
Simple package to read DNT (Dragon Nest Table) files
Downloads
26
Readme
Content
Install with npm:
npm install --save-dev dnt-readerjs
Install with yarn:
yarn add dnt-readerjs --dev
import { extractData } from "dnt-readerjs"
// You should read file as ArrayBuffer to use this function before
// Please, provide the correct extention (.dnt) of file before using data extract function
// Example: fairytypetable.dnt
const result = extractData(fileArrayBuffer, "fairytypetable.dnt")
const { data, columnNames, columnTypes, columnIndexes, numRows, numColumns } = result
// Now you can use all data how you want
columnNames.forEach((column) => console.log(column))