bruker-data-test
v0.5.4
Published
Provides bruker NMR data files for testing purposes
Downloads
5,674
Keywords
Readme
bruker-data-test
.
Installation
$ npm i bruker-data-test
Provide FileList of bruker files zipped or unzipped
Usage
import { getList, getFile, getZipped } from 'bruker-data-test';
const listOfFilenames = await getList(); //list of zip file names
const filename = 'aspirin-1h.zip';
const zipped = getZipped();
const aspirin = zipped.find((entry) => entry.name === filename);
const buffer = await aspirin.arrayBuffer();
//or
const zipBuffer = await getData(filename);
File list of a folder with two bruker samples
import { getCoffee } from 'bruker-data-test';
const fileList = await getCoffee();