Computes the duration of an mp3 buffer in node or browser.
npm install get-mp3-duration> Computes the duration of an mp3 buffer in node or browser.
  
``bash`
npm install --save get-mp3-durationor
yarn add get-mp3-duration
`js
const getMP3Duration = require('get-mp3-duration')
const buffer = fs.readFileSync('fixtures/vbr.mp3')
const duration = getMP3Duration(buffer)
console.log(duration, 'ms') => 285727 ms
``
- mp3-duration this package is a fork of mp3-duration to add browser support.
- vmsg is an optimized mp3 recorder for the web which ports the lame mp3 encoder to wasm.
MIT © Travis Fischer