0.1.9 • Published 6 years ago
sigfile v0.1.9
SigFile
SigFile provides MATLAB file parsing and XMIDAS Bluefile parsing in JS.
Installation
npm i sigfileor
yarn add sigfileExample
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);
});