Skip to content

add node build

Compare
Choose a tag to compare
@bmaranville bmaranville released this 30 Jul 15:19
· 67 commits to master since this release

a nodejs build is located in dist/index.js

Example use:

$ node
Welcome to Node.js v14.17.4.
Type ".help" for more information.
> const hdf5 = require("jsfive")
undefined
> var fs = require("fs");
undefined
> var ab = fs.readFileSync("/home/brian/Downloads/sans4490.nxs.ngv");
undefined
> var f = new hdf5.File(ab.buffer);
undefined
> f.keys
[ 'entry' ]
> f.get("entry").attrs
{ NX_class: 'NXentry' }
>