Skip to content

Zigecek/node-ms2human

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Function

  • Example response:
    const ms2human = require('ms2human');
    
    console.log(ms2human(8941));
    // 02:29:01
    
    console.log(ms2human('41'));
    // 00:41
    
    console.log(ms2human(92));
    // 01:32
    
    console.log(ms2human(0));
    // undefined
    
    console.log(ms2human(true));
    // undefined
    
    console.log(ms2human('xx'));
    // undefined

Installation

  • npm i ms2human --save

About

Converts miliseconds to 00:00:00:000 format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published