Package Exports
- sigfile
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sigfile) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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);
});