npm moment-duration-format 2.0.1
Version 2.0.1

latest releases: 2.3.2, 2.3.1, 2.3.0...
6 years ago

Because nothing is ever perfect.

This version fixes two issues in version 2.0.0:

  • #81 JavaScript error when using the plugin with Node.js because window is undefined. The userLocale option now defaults to the locale set in moment.js, retrieved via moment.locale().

  • #82 Trim errors for durations greater than one month and templates that included tokens of lesser magnitude. Duration arithmetic is handled differently in moment.js for months and years than it is for days and lesser types. The plugin now handles that transition correctly.

Don't miss a new moment-duration-format release

NewReleases is sending notifications on new releases.