ember-reading-time

Medium-like reading time estimation for EmberJS.

Usage no npm install needed!

<script type="module">
  import emberReadingTime from 'https://cdn.skypack.dev/ember-reading-time';
</script>

README

ember-reading-time

Medium-like reading time estimation for EmberJS.

Based on reading-time and humanized-duration libraries.

Compatibility

  • Ember.js v3.20 or above
  • Ember CLI v3.20 or above
  • Node.js v12 or above

Installation

ember install ember-reading-time

Usage

By default, reading-time helper will humanize down to the minute and use english as language.

{{reading-time 'My text here'}}

{{reading-time 'My text here' (hash language='ja')}}

Options

All options from humanize-duration are available: https://github.com/EvanHahn/HumanizeDuration.js#options

Contributing

See the Contributing guide for details.

Contributors ✨

License

This project is licensed under the MIT License.