human2sec

1.0.0 • Public • Published

Function

  • Example response:
    const human2sec = require('human2sec');
    
    console.log(human2sec('25:07'));
    // 1507
    
    console.log(human2sec('41'));
    // 41
    
    console.log(human2sec(0));
    // undefined
    
    console.log(human2sec(true));
    // undefined
    
    console.log(human2sec('xx'));
    // undefined

Installation

  • npm i human2sec --save

Readme

Keywords

Package Sidebar

Install

npm i human2sec

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

1.88 kB

Total Files

3

Last publish

Collaborators

  • zige