1.0.0 • Published 3 years ago
human2sec v1.0.0
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
1.0.0
3 years ago