
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.
DFPWM encoder/decoder for JavaScript. Useful for ComputerCraft.
This module converts between signed 8-bit PCM data and DFPWM data. A description of the DFPWM codec is available here.
const dfpwm = require("dfpwm"); // require the module
// encode from signed 8-bit PCM buffer to DFPWM
let encoder = new dfpwm.Encoder(); // create an encoder
let encodedData = encoder.encode(pcmData); // encode data to DFPWM
// decode from DFPWM buffer to signed 8-bit PCM
let decoder = new dfpwm.Decoder(); // create a decoder
let decodedData = decoder.decode(encodedData); // decode data to PCM
// or do single chunks quicker: (not recommended for streaming data)
let encodedData = dfpwm.quickEncode(pcmData);
let decodedData = dfpwm.quickDecode(encodedData);
// use streams to streamline data access
fs.createReadStream("in.pcm")
.pipe(new dfpwm.Encoder())
.pipe(fs.createWriteStream("out.dfpwm"))
Encoders and decoders may be re-used for streaming audio. This helps keep audio quality better across multiple chunks.
This library is licensed under the MIT license. The original DFPWM1a encoder is licensed in the public domain.
final argument to Encoder.encode to write out the last bits that don't fit in a single byte.Encoder/Decoder now extend from stream.Transform, allowing them to be used in Stream.pipe.FAQs
DFPWM encoder/decoder for JavaScript. Useful for ComputerCraft.
We found that dfpwm 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.