Skip to content

alicestoneprod/dnt-readerjs

Repository files navigation

dnt-readerjs is a simple way to extract data from Dragon Nest Table (DNT) files

Content

  1. Install
  2. Introduction
  3. Contributing

💻 Install

Install with npm:

npm install --save-dev dnt-readerjs

Install with yarn:

yarn add dnt-readerjs --dev

📚 Introduction

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))
Output:

🤝 Contributing


If you wish you can become a contributor to `dnt-readerjs` and help improve the library or make its documentation more comprehensive.


❤️ Many thanks for spacem for half of code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors