Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
common-spectrum
Advanced tools
Common package to deal with spectral analysis.
An Analysis
may be composed of many Spectrum
of different flavors.
By default the flavor is an empty string and if your analysis only generates one spectrum you may forget this level of complexity.
In the case of Thermogravitaional Analysis (TGA) we may have 2 flavor for the data:
This package allow to load / save an Analysis as a JCAMP-DX text file.
$ npm i common-spectrum
import { Analysis, fromJcamp, toJcamp, getJSGraph } from '..';
let analysis = new Analysis();
expect(analysis.id).toHaveLength(8);
analysis.pushSpectrum(
{ x: [1, 2], y: [3, 4] },
{
xUnits: 'xUnits',
yUnits: 'yUnits',
xLabel: 'X axis',
yLabel: 'Y axis',
title: 'My spectrum',
dataType: 'TGA',
meta: {
meta1: 'Meta 1',
meta2: 'Meta 2',
},
},
);
let firstSpectrum = analysis.getSpectrum();
let normalized = analysis.getNormalizedData({
normalization: {
filters: [{ name: 'normalize' }],
},
});
let jsgraph = getJSGraph([analysis]);
let jcamp = toJcamp(analysis, {
info: {
owner: 'cheminfo',
origin: 'Common Spectrum',
},
});
let analysis2 = fromJcamp(jcamp);
FAQs
Common package to deal with spectra
The npm package common-spectrum receives a total of 285 weekly downloads. As such, common-spectrum popularity was classified as not popular.
We found that common-spectrum 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.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.