#brukerconverter
It is able to extract NMR spectra from a zip file that contain the bruker folders.
Installation
Node JS
npm install brukerconverter
Use as a module
####Node JS
As brukerconverter could be used to convert bruker files from a zip file by
the use of fileListFromZip
from filelist-utils
package.
const { convertFileList } = require('brukerconverter');
const { fileListFromZip } = require('fileList-utils');
const { getZipped } = require('bruker-data-test');
async function asyncCall(zip) {
const fileList = await fileListFromZip(zip);
const result = await convertFileList(fileList);
console.log(result);
}
asyncCall(getZipped());
It is possible to use the converter if you have a path of the bruker folder by
the use of fileListFromPath
from filelist-utils
package.
const { getCoffee } = require('bruker-data-test');
const { convertFileList } = require('brukerconverter');
const { fileListFromPath } = require('filelist-utils');
async function asyncCall(path) {
const fileList = await fileListFromPath(path);
const result = await convertFileList(fileList);
console.log(result);
}
asyncCall(getCoffee());