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

bluefile.js

bluefile.js Copyright (c) 2012-2020, LGS Innovations Inc., All rights reserved.

This file is part of SigFile.

Licensed to the LGS Innovations (LGS) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. LGS licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

License:
  • apache-2.0
Source:

util.js

util.js Copyright (c) 2012-2020, LGS Innovations Inc., All rights reserved.

This file is part of SigFile.

Licensed to the LGS Innovations (LGS) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. LGS licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

License:
  • apache-2.0
Source: