JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q22203F
  • License ISC

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

Package Exports

  • ms2human

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ms2human) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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