Skip to content

Node package that converts seconds to 00:00:00 format.

Notifications You must be signed in to change notification settings

Zigecek/node-sec2human

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Node package that converts seconds to 00:00:00 format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published