The purpose of this library is to allow the user to read and write *.npy
files so long as they are standard and not compressed or pickled. This javascript utility builds off the work of Nicholas Tancredi. We simply use this library as a tool to read npy
files and have added functionality to write these npy
files back to disk if needed.
npm i npy-js
const { readNumpyFile, writeNumpyFile } = require('npy-js');
var da = readNumpyFile('./n.npy');
writeNumpyFile('/o.npy', da);
To run tests simply run
npm run test