Skip to content

Parses milliseconds into an object. Credit to sindresorhus/parse-ms, package heavily paraphrased from his project and converted to typescript.

Notifications You must be signed in to change notification settings

mikecabana/parse-milliseconds

Repository files navigation

parse-milliseconds

Parses milliseconds into an object. Credit to sindresorhus/parse-ms, package heavily paraphrased from his project and converted to typescript.

install

npm i parse-milliseconds

use

import parseMilliseconds from 'parse-milliseconds';

const parsed = parseMilliseconds(1000 * 55);

/**

{
    days: 0,
    hours: 0,
    minutes: 0,
    seconds: 55,
    milliseconds: 0,
    microseconds: 0,
    nanoseconds: 0
}

*/

About

Parses milliseconds into an object. Credit to sindresorhus/parse-ms, package heavily paraphrased from his project and converted to typescript.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages