0.1.9 • Published 4 years ago

sigfile v0.1.9

Weekly downloads
261
License
Apache-2.0
Repository
github
Last release
4 years ago

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 sigfile = require('sigfile');
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 { BlueHeader } from 'sigfile';

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