Closed EmilMoe closed 6 years ago
While potentially useful, this library is in maintenance mode and no new features will be added.
You could solve this with a wrapper function, like so:
function myHumanizer(ms, options) {
if (ms === null) {
return 'None'
} else {
return humanizeDuration(ms, options)
}
}
Hope that helps!
It would be a great feature, I think, if
null
would returnNone
or similar in different languages? What do you think? You can still get out0
by simply using0
.An example could be: