hashtag-time

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

hashtag-time

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

To see more examples check the tests

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

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