Nocturnal Parakeet Monitor
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

track-duration

0.1.1 • Public • Published

Track duration

npm version Build Status Maintainability Test Coverage

Converts milliseconds to a format like Spotify's track durations.

Installation

npm install track-duration --save

Parse

parse(milliseconds: number): string

Takes milliseconds and returns a formatted duration.

Example

import { parse } from 'track-duration'
 
parse(5000000) // 1:23:20
parse(223452) // 3:43

Tests

npm test

install

npm i track-duration

Downloadsweekly downloads

4

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar