Parse an ARW text file used in some scientific instrument
$ npm install arw-parser
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]
}
}
*/