Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 1.42 KB

README.md

File metadata and controls

56 lines (43 loc) · 1.42 KB

arw-parser

NPM version build status Test coverage David deps npm download

Parse an ARW text file used in some scientific instrument

Installation

$ npm install arw-parser

Example

const {parse} = require('arw-parser');

const data = `"Instrument:"  "XYZ"
1   2
3   4
5   6
7   8`;

const result = parse(data);
/* result ->
{
    info: {
        Instrument:'XYZ'
    },
    data: {
        x:[1,3,5,7],
        y:[2,4,6,8]
    }
}
*/

License

MIT