1.0.3 • Published 9 years ago
mp3length v1.0.3
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