Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.24 KB

README.md

File metadata and controls

43 lines (30 loc) · 1.24 KB

SigFile

License Build Status PRs Welcome npm version codecov

SigFile provides MATLAB file parsing and XMIDAS Bluefile parsing in JS.

Installation

npm i sigfile

or

yarn add sigfile

Example

Extracting the header from a Bluefile

const bluefile = require('sigfile').bluefile;
const fs = require('fs');

fs.readFile('./tests/dat/ramp.tmp', function(err, buf) {
    const header = new sigfile.BlueHeader(buf.buffer);
    console.log(header);
});

or

import { readFile } from 'fs';
import { bluefile } from 'sigfile';

readFile('./tests/dat/ramp.tmp', (err, buf) => {
    const header = new bluefile.BlueHeader(buf.buffer);
    console.log(header);
});