hashtag-time

0.0.3 • Public • Published

build status

hashtag-time

Parse a time-hashtag into number of seconds: e.g. #4hrs30mins = 16200

To see more examples check the tests

usage

var hashtagTime = require('hashtag-time')
var time = hashtagTime('#4hrs30mins')

console.log(time)
// {
//   hours: 4,
//   minutes: 30,
//   duration: 16200
// }

install

npm install hashtag-time

Readme

Keywords

none

Package Sidebar

Install

npm i hashtag-time

Weekly Downloads

1

Version

0.0.3

License

BSD

Last publish

Collaborators

  • domharrington