Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mp3-length

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mp3-length

Get length of a mp3

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

mp3-length

Calculate length of a mp3

Provides an api to calculate length of mp3 files

Requirements

  • mp3info - Use apt-get install mp3info to get

Install

$ npm install --save mp3-length

Usage

var mp3Length = require('mp3-length');

mp3Length('file.mp3', function (err, length) {
	if (err == null) {
		console.log(length);
	}
});

API

mp3Length(filepath, callback)

filepath

Type: string

Path to the file

callback(error, length)

Type: 'function'

Callback to be called once length is calculated

License

MIT © Amanpreet Singh

Keywords

FAQs

Package last updated on 15 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc