frequency

Turn text frequencies into something useful

Usage no npm install needed!

<script type="module">
  import frequency from 'https://cdn.skypack.dev/frequency';
</script>

README

node-frequency


Super simple node module for transforming frequencies into time.

We only support a single expression, such as 5 minutes. Not 5 minutes 15 seconds

The parser returns a object with three methods:

  • moment() -> A moment object {type: digit}, e.g. {minutes: 5}

  • ms() -> Milliseconds for this expression

  • seconds() -> Seconds for this expression