1.0.3 • Published 9 years ago

mp3length v1.0.3

Weekly downloads
85
License
MIT
Repository
github
Last release
9 years ago

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

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago