Closed mickeyvip closed 7 years ago
I'd be hesitant to do this instead of #73. You could solve it with something like this:
humanizeDuration(x, { round: value > 1000 })
Sorry for the typo in the title.
I am currently doing what you are proposing (the curly braces got lost, because I copied the example from CoffeeScript), but if I do it in many places, it would be shorter to create 1 humanazer
and use it instead.
Feel free to submit a pull request for this.
This library is in maintenance mode, so I won't be adding new features, sadly. I'm going to close this issue. See #120 for more.
Hi and thank you.
I have a situation where I need to decide if to round or not the value based on... the value:
I use it in many places so it makes sense to create a
Humanizer
similar to: