
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
A utility library for calculating musical information e.g. a note from a frequency
A utility library for calculating musical information e.g. a note from a frequency
$ npm install --save music-math
var Frequency = require('music-math').Frequency;
var freqDetails = Frequency(440)
console.log(JSON.stringify(freqDetails))
//=> {"frequency":440,"noteNumber":57,"note":"A","octave":4,"offset":0}
number
The frequency to perform calculations on (in Hz).
Returns an object with the following properties (lazily calculated first time you request them):
number
The frequency of the note (in Hz)
number
The number of the [closest matching] note in the scale
string
The [closest matching] note in the scale
number
The octave the frequency resides in
number
The measure of how off pitch the frequency is from the closest matching note (in cents)
This utility was pulled out of a little fun side project I was working on - I am by no means versed in musical theory. I would be immensely grateful of any help especially in the form of:
All pull requests / issues / feedback welcome :) Thanks!
npm run build
npm test
To watch for changes, build them and run the tests:
npm run watch
MIT © James Bunt
FAQs
A utility library for calculating musical information e.g. a note from a frequency
The npm package music-math receives a total of 2 weekly downloads. As such, music-math popularity was classified as not popular.
We found that music-math 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.