UNPKG

node-ulaw

Version:

Native G.711 µ-law decoder for Node.js. Optimized C++/N‑API binding for minimal overhead and maximum throughput.

6 lines (4 loc) 208 B
const path = require('path'); // Directly load the built .node file: const { decodeUlaw, encodeUlaw } = require(path.join(__dirname, 'build/Release/ulaw.node')); module.exports = { decodeUlaw, encodeUlaw };