There are two ways to humanize duration with this library:
Call humanizeDuration(123)
Create a humanizer with humanizeDuration.humanizer, then call that humanizer
Humanizers are still a useful concept and we should document how to do it yourself, but it adds unnecessary complexity to the library for little benefit.
Removing it should be a matter of:
Moving the tests out of test/humanizer.js into separate files
Updating any other tests
Replace humanizeDuration.humanizer with a function that errors, adding a link to documentation (to ease migration)
There are two ways to humanize duration with this library:
humanizeDuration(123)
humanizeDuration.humanizer
, then call that humanizerHumanizers are still a useful concept and we should document how to do it yourself, but it adds unnecessary complexity to the library for little benefit.
Removing it should be a matter of:
test/humanizer.js
into separate fileshumanizeDuration.humanizer
with a function that errors, adding a link to documentation (to ease migration)