Skip to content

spectriclabs/sigfile

 
 

Repository files navigation

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

About

Module to read signal data from files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%