mp3length

1.0.3 • Public • Published

mp3length

Join the chat at https://gitter.im/yuchuan1/mp3length

Get the length of mp3 files utilizing OS built in functions for windows and OSX

Install

$ npm install --save mp3length

Usage

var mp3Length = require('mp3Length');
mp3Length('test.mp3', function (err, length) {
  console.log('The estimated length test.mp3 is ' + length + ' secs');
});

API

mp3Length(filepath, callback)

filepath

Type: string

Path to the file

callback(error, length)

Type: function

Callback to be called once mp3 length (in seconds) is retrieved

Readme

Keywords

Package Sidebar

Install

npm i mp3length

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • yuchuan1