
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-emission-spectra
Advanced tools
a set of react components for the visible emission and absorption spectra of chemical elements
a set of react components for visualising the visible emission and absorption spectra of chemical elements
npm install --save react-emission-spectra
import React, { Component } from 'react'
import {SpectralLines} from 'react-emission-spectra'
class Example extends Component {
render() {
return <SpectralLines elementSymbol="H" spectrumType="emission"/>
}
}
For more examples see https://rested.github.io/react-emission-spectra/
The data for the emission/absorption spectrum for each element comes from the NIST Atomic Spectra Database Lines Form. This collection code can be found here.
The data then gets processed into clusters using the jump method and K-Means. The code for this can be found here.
The data for some elements is missing this should be due to there not being available data on these:
const missingElements = ["Ds", "Mt", "Nh", "Mc", "Ts", "Lv", "Fl", "Hs", "Fm", "Db", "No", "Md", "Sg", "At", "Rg", "Bh", "Cn", "Rf", "Lr", "Og"]
The rendering uses css gradients generated using the fantastic tinygradient library. This avoids cluttering the dom with extra elements and ensures native rendering.
MIT © Rested
FAQs
a set of react components for the visible emission and absorption spectra of chemical elements
The npm package react-emission-spectra receives a total of 3 weekly downloads. As such, react-emission-spectra popularity was classified as not popular.
We found that react-emission-spectra demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.