{"name":"sec","version":"1.0.0","description":"Convert a time string to seconds: '00:22:17' → 1337","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/sec"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["sec","second","seconds","time","string","str","data","hms","hour","minute","convert"],"devDependencies":{"ava":"0.0.4"},"gitHead":"ed373c67ef62ef7192dea089d7bcade4b94f65c3","bugs":{"url":"https://github.com/sindresorhus/sec/issues"},"homepage":"https://github.com/sindresorhus/sec","_id":"sec@1.0.0","_shasum":"033d60a3ad20ecf2e00940d14f97823465774335","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"033d60a3ad20ecf2e00940d14f97823465774335","tarball":"http://registry-npm.ywwl.com/sec/download/sec-1.0.0.tgz","integrity":"sha512-rVnXtdy9keLxyssT6xung9WwtdB+kha3De93w50RNzwOslyLaDGhqoOqrh4InPoOhhqUZ4JOnovGd3BvLZ+f7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBkpSxGE5zRFHrzX1HAACNZXkxW+qq5bnLNxAsWYl35AAiEA/7AgJQKvBVJ4WJg7VoSaPudUYOsXNzHtgHAqpFYEHXU="}],"size":1489,"noattachment":false,"key":"/sec/-/sec-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# sec\n\n> Convert a time string to seconds: `'00:22:17'` → `1337`\n\n## Install\n\n```\n$ npm install sec\n```\n\n## Usage\n\n```js\nimport toSeconds from 'sec';\n\n// hours:minutes:seconds\ntoSeconds('00:22:17');\n//=> 1337\n\ntoSeconds('22:17');\n//=> 1337\n\ntoSeconds('17');\n//=> 17\n```\n","publish_time":1433017947669,"_cnpm_publish_time":1433017947669,"dist-tags":{"latest":"2.0.0"}}