Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
jcampconverter
Advanced tools
Parse and convert JCAMP data
npm install jcampconverter
bower install jcampconverter
Converts the jcamp
using options
.
Returns an object with information about the converted file and uncompressed spectra data.
Arguments
jcamp
- String containing the JCAMP dataoptions
- Object with options to pass to the converteruseWorker
- Browser only: convert in a web worker (default: false). If this option is set to true, it will return a Promise.Options
keepRecordsRegExp
)2D NMR options:
result.minMax.z
(default: false)var converter = require("jcampconverter");
var jcamp = require("fs")
.readFileSync("path/to/jcamp.dx")
.toString();
var result = converter.convert(jcamp);
// if there is only one spectrum it will be in
console.log(result.flatten[0]);
// the converter will also keep the full jcamp tree
require(["jcampconverter"], function(JcampConverter) {
// Use the worker
JcampConverter.convert(jcamp, true).then(function(result) {
// Do something with result
});
});
npm install
npm test
npm run build
npm run benchmark
FAQs
Parse and convert JCAMP data
The npm package jcampconverter receives a total of 550 weekly downloads. As such, jcampconverter popularity was classified as not popular.
We found that jcampconverter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.