Library extracted from NMRium project enabling conversion to NMRium format on an application server in node.js environment.
options: object
- save : boolean
- outputPath : string
- spectrumOnly : boolean
- removeMeta : boolean
- removeProjections : boolean
- title : string
Usage example:
const getNMRium = require('convert-to-nmrium')
getNMRium
.fromBrukerZip('./test/data/test-Bruker.zip', {
save: true,
outputPath: './test/data/testFromBruker.nmrium'
})
.then(nmriumObj => console.log(nmriumObj.spectra))
.catch(error => console.log(error))
Test:
To test the package in local environment
npm link convert-to-nmrium
cd test
npm link
cd ..
npm test
Replaced by nmr-load-save