npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

sec

1.0.0 • Public • Published

sec Build Status

Convert a time string to seconds: '00:22:17'1337

Install

$ npm install --save sec

Usage

var sec = require('sec');
 
// hours:minutes:seconds
sec('00:22:17');
//=> 1337
 
sec('22:17');
//=> 1337
 
sec('17');
//=> 17

License

MIT © Sindre Sorhus

install

npm i sec

Downloadsweekly downloads

78,111

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability