sigfile
v0.1.9
Published
Utilities to reading signal data from files
Downloads
1,491
Readme
SigFile
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);
});