{"id":16368907,"url":"https://github.com/apsdehal/mp3-length","last_synced_at":"2026-02-26T23:30:16.825Z","repository":{"id":23327143,"uuid":"26687310","full_name":"apsdehal/mp3-length","owner":"apsdehal","description":"NPM module for calculating length of a mp3 file","archived":false,"fork":false,"pushed_at":"2014-11-15T23:27:28.000Z","size":268,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T07:14:31.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apsdehal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-15T17:19:55.000Z","updated_at":"2015-10-08T06:59:31.000Z","dependencies_parsed_at":"2022-08-21T21:10:42.861Z","dependency_job_id":null,"html_url":"https://github.com/apsdehal/mp3-length","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2Fmp3-length","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2Fmp3-length/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2Fmp3-length/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2Fmp3-length/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apsdehal","download_url":"https://codeload.github.com/apsdehal/mp3-length/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239869221,"owners_count":19710485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T02:54:10.096Z","updated_at":"2026-02-26T23:30:16.773Z","avatar_url":"https://github.com/apsdehal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mp3-length ![Travis-Build](https://travis-ci.org/apsdehal/mp3-length.svg?branch=master)\n\n\u003e Calculate length of a mp3\n\nProvides an api to calculate length of mp3 files\n\n## Requirements\n\n- mp3info - Use `apt-get install mp3info` to get\n\n## Install\n\n```\n$ npm install --save mp3-length\n```\n\n## Usage\n\n```javascript\nvar mp3Length = require('mp3-length');\n\nmp3Length('file.mp3', function (err, length) {\n\tif (err == null) {\n\t\tconsole.log(length);\n\t}\n});\n\n```\n\n## API\n\n## mp3Length(filepath, callback) \n\n### filepath\n\nType: `string`\n\nPath to the file\n\n### callback(error, length)\n\nType: `function`\n\nCallback to be called once length is calculated\n\n## License\n\nMIT © [Amanpreet Singh](http://apsdehal.in)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsdehal%2Fmp3-length","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapsdehal%2Fmp3-length","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsdehal%2Fmp3-length/lists"}