
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
PCM audio sample rate conversion for Node.js
You must have libresample installed.
$ sudo apt-get install libresample1-dev
$ brew install https://raw.github.com/xdissent/homebrew/d4f55ba336d66473e7bf167901a0c575c0c4ae17/Library/Formula/libresample.rb
Install with npm:
$ npm install resampler
or via git:
$ npm install git+https://github.com/xdissent/node-resampler.git
The resampler module exports a stream.Transform subclass:
var Resampler = require('resampler');
// Pass the input and output sample rates to the constructor:
var resampler = new Resampler(44100, 22050);
// Optionally choose low quality:
// var resampler = new Resampler(44100, 22050, Resampler.QUALITY_LO);
// Treat it like any other transform stream:
process.stdin.pipe(resampler).pipe(process.stdout);
// $ cat audio.pcm | node resample.js > resampled.pcm
Lofi-ify by downsampling by a ridiculous factor:
Resampler = require 'resampler'
downer = Resampler.new 44100, 1337
upper = Resampler.new 1337, 44100
process.stdin.pipe(downer).pipe(upper).pipe(process.stdout)
# $ cat audio.pcm | coffee lofi.coffee > lofi.pcm
Why not SRC libsamplerate?
Because it's GPL.
FAQs
PCM audio sample rate conversion for Node.js
The npm package resampler receives a total of 9 weekly downloads. As such, resampler popularity was classified as not popular.
We found that resampler 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.