Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 602 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 602 Bytes

jcamp-data-test

provides JCAMP-DX NMR data files for testing purposes.

usage

import { getData, getFile, getList } from "jcamp-data-test";
const listOfFilenames = await getList();

const filename = "Rutin_3080ug200uL_DMSOd6_qHNMR_400MHz_JDX.jdx";

const file = await getFile(filename);
const jcampString = await file.text();
const jcampBuffer = await file.arrayBuffer();
//or
const buffer = await getData(filename);

acknowledgements

The original data were found here thanks to Jonathan and Guido.