wdf-parser
v0.3.0
Published
Parse raman WDF file
Readme
wdf-parser
Parse raman WDF file.
Installation
$ npm i wdf-parser
Usage
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
import { parse } from 'wdf-parser';
const arrayBuffer = readFileSync(join(__dirname, 'spectra.wdf'));
const result = parse(arrayBuffer);
// result is an object containing everything that was parsedExamples
Useful Links
ToDo
- [x] parse file header
- [x] parse DATA block
- [x] parse XLIST and YLIST block
- [x] parse ORIGIN block
- [ ] parse MAPAREA
- [ ] test and write examples on this readme file
