{"_id":"get-mp3-duration","_rev":"4-83abf3ac634b9823ae7d9197fafbd667","name":"get-mp3-duration","dist-tags":{"latest":"1.0.0"},"versions":{"0.2.0":{"name":"get-mp3-duration","version":"0.2.0","description":"Computes the duration of an mp3 buffer in node or browser.","main":"index.js","repository":{"type":"git","url":"https://github.com/transitive-bullshit/get-mp3-duration.git"},"author":{"name":"Travis Fischer","email":"travis@automagical.ai"},"license":"MIT","scripts":{"test":"ava -v && standard"},"keywords":["mp3","duration","audio"],"devDependencies":{"ava":"^0.25.0","standard":"^11.0.0"},"_id":"get-mp3-duration@0.2.0","dist":{"shasum":"83e25e65621cdf9d1187716107fc10bb19a3822b","tarball":"https://registry.npmjs.org/get-mp3-duration/-/get-mp3-duration-0.2.0.tgz","fileCount":7,"unpackedSize":6286,"integrity":"sha512-B/oKRhttRnpAznXdRUQYzmPx7jzSHC2LObS5iWHkwScEsMDsukT/7DHTvDcMUXqVHEJMss32X4vTdehQTWjf5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLxBCUU39xSFSYh+uxjSGRA8QRIToW53TERaV97PKMTAIgK0gNtbEVchZHWIsP3IxqlI4QqcvaYwM+qkxmQngXR4Q="}]},"maintainers":[{"name":"fisch0920","email":"fisch0920@gmail.com"}],"_npmUser":{"name":"fisch0920","email":"fisch0920@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-mp3-duration_0.2.0_1520542187903_0.6728635592498251"},"_hasShrinkwrap":false},"1.0.0":{"name":"get-mp3-duration","version":"1.0.0","description":"Computes the duration of an mp3 buffer in node or browser.","main":"index.js","repository":{"type":"git","url":"https://github.com/transitive-bullshit/get-mp3-duration.git"},"author":{"name":"Travis Fischer","email":"travis@automagical.ai"},"license":"MIT","scripts":{"test":"ava -v && standard"},"keywords":["mp3","duration","audio"],"devDependencies":{"ava":"^0.25.0","standard":"^11.0.0"},"_id":"get-mp3-duration@1.0.0","dist":{"shasum":"471efca0f9e4930e7866016f6078582f4ce934cb","tarball":"https://registry.npmjs.org/get-mp3-duration/-/get-mp3-duration-1.0.0.tgz","fileCount":7,"unpackedSize":6348,"integrity":"sha512-SiTppS0shvqCJ8rky8E1Yi9thLoTTGq3Tjc4n4pmjo8BMuiQFN3cCfiaWmRFk/8TjhOQhPwrpJZJDvOcbPVwrw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdS9oLLt05bKg/Knk/hyg1Jv9AfoNhasAVg15ymbhx1AiBEWgqKp7/7gWrqqTXAOWkFiyDFguZ1MNykQhUxTRN17w=="}]},"maintainers":[{"name":"fisch0920","email":"fisch0920@gmail.com"}],"_npmUser":{"name":"fisch0920","email":"fisch0920@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-mp3-duration_1.0.0_1520542508565_0.9255295312517025"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-08T20:49:47.902Z","0.2.0":"2018-03-08T20:49:47.968Z","modified":"2022-06-18T07:51:15.535Z","1.0.0":"2018-03-08T20:55:08.696Z"},"maintainers":[{"name":"fisch0920","email":"fisch0920@gmail.com"}],"description":"Computes the duration of an mp3 buffer in node or browser.","keywords":["mp3","duration","audio"],"repository":{"type":"git","url":"https://github.com/transitive-bullshit/get-mp3-duration.git"},"author":{"name":"Travis Fischer","email":"travis@automagical.ai"},"license":"MIT","readme":"# get-mp3-duration\n\n> Computes the duration of an mp3 buffer in node or browser.\n\n[![NPM](https://img.shields.io/npm/v/get-mp3-duration.svg)](https://www.npmjs.com/package/get-mp3-duration) [![Travis CI Build](https://travis-ci.org/transitive-bullshit/get-mp3-duration.svg?branch=master)](https://travis-ci.org/transitive-bullshit/get-mp3-duration) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save get-mp3-duration\n# or\nyarn add get-mp3-duration\n```\n\n## Usage\n\n```js\nconst getMP3Duration = require('get-mp3-duration')\nconst buffer = fs.readFileSync('fixtures/vbr.mp3')\nconst duration = getMP3Duration(buffer)\n\nconsole.log(duration, 'ms') => 285727 ms\n```\n\n## Related\n\n- [mp3-duration](https://github.com/ddsol/mp3-duration) this package is a fork of mp3-duration to add browser support.\n- [vmsg](https://github.com/Kagami/vmsg) is an optimized mp3 recorder for the web which ports the lame mp3 encoder to wasm.\n\n## License\n\nMIT © [Travis Fischer](https://github.com/transitive-bullshit)\n","readmeFilename":"readme.md"}