sec2human

1.0.4 • Public • Published

Function

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

Installation

  • npm i sec2human --save

Readme

Keywords

Package Sidebar

Install

npm i sec2human

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

1.87 kB

Total Files

3

Last publish

Collaborators

  • zige