New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

brukerconverter

Package Overview
Dependencies
Maintainers
6
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brukerconverter

Parse and convert Bruker raw data

5.0.2-pre.1667228020
npm
Version published
Weekly downloads
1.2K
8.79%
Maintainers
6
Weekly downloads
 
Created
Source

#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('fileCollection-utils');
const { getZipped } = require('bruker-data-test');

async function asyncCall(zip) {
  const fileCollection = await fileListFromZip(zip);
  const result = await convertFileList(fileCollection);
  console.log(result);
  //...{ spectra, meta, source }
}

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 fileCollection = await fileListFromPath(path);
  const result = await convertFileList(fileCollection);
  console.log(result);
  //...{ spectra, meta, source }
}

asyncCall(getCoffee());
//...{ spectra, meta, source }

API Documentation

Keywords

bruker

FAQs

Package last updated on 31 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts