Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

brukerconverter

Package Overview
Dependencies
Maintainers
6
Versions
88
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

  • 3.5.0
  • npm
  • Socket score

Version published
Weekly downloads
165
decreased by-51.47%
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 uses jszip to load the zip binary, the method returns a promise. You need the zip file loaded in memory as arrayBuffer or base64 passing option base64 with a boolean value of true.

const { convertZip } = require('brukerconverter');
const { bruker } = require('bruker-data-test');

convertZip(bruker['aspirin-1h.zip'], { keepOriginal: true, xy: true })
  .then((result) => {
    console.log(result);
    //...{ spectra, meta, source }
  });

It is possible to use the converter if you have the files already loaded in memory as an object.

const { convertFolder } = require('brukerconverter');

let result = convertFolder(brukerFiles, { keepOriginal: true, xy: true});
console.log(result);
//...{ spectra, meta, source }

API Documentation

Keywords

FAQs

Package last updated on 18 May 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc