0.3.3 • Published 4 years ago
@laser-dac/ilda-reader v0.3.3
ILDA Reader
This package can read an ILDA file (.ild) and convert it to a JSON array of points. All ILDA formats are supported (0 to 5).
This is heavily inspired by ilda.js, but this tool only works in the browser and we wanted to be able to use it in both Nodejs and the browser.
To write a JSON array of points to an ILDA file, see its counterpart ilda-writer.
Install
npm install @laser-dac/ilda-readerUsage
For a full example see ./test.ild and ./test.ts in the repository.
const buffer = fs.readFileSync('./test.ild');
const output = fromByteArray(new Uint8Array(buffer));
console.log(output);