dbf
Write dBase files in pure JavaScript, in node.js or browsers. Requires ArrayBuffer and DataView support.
usage
npm install dbf
Or just in a browser:
https://unpkg.com/dbf@latest/dbf.js
Replace latest
with the latest version if you want to be sure.
example
in node:
var dbf = fs = ; var buf = dbf; fs; { var buffer = abbyteLength; var view = ab; for var i = 0; i < bufferlength; ++i bufferi = viewi; return buffer;}
API
dbf.structure(array)
Given an array of objects with string or number attributes, return a DataView object referencing an ArrayBuffer that contains a full DBF file structure.