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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    0
  • 0.0.1
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i hashtag-time

Weekly Downloads

1

Version

0.0.3

License

BSD

Last publish

Collaborators

  • domharrington