hashtag-time

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

npm install hashtag-time
4 downloads in the last week
16 downloads in the last month

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
npm loves you