Package detail

sigfile

LGSInnovations2.1kApache-2.00.1.9

Utilities to reading signal data from files

sigplot, matlab, bluefile, dsp

readme

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

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