Install with npm:
npm install --save-dev dnt-readerjsInstall with yarn:
yarn add dnt-readerjs --devimport { 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))If you wish you can become a contributor to `dnt-readerjs` and help improve the library or make its documentation more comprehensive.

