Skip to content

Latest commit

 

History

History
 
 

ilda-reader

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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-reader

Usage

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);