TotallyInformation / node-red-contrib-moment

Node-Red Node that produces formatted Date/Time output using the Moment.JS library. Timezone, dst and locale aware.
Apache License 2.0
34 stars 16 forks source link

Humanizer node added (expose of humanize() in moment.duration) #8

Closed Laro88 closed 7 years ago

Laro88 commented 7 years ago

I found myself needing duration.humanize() in moment, and made a node therefore.

I dot know if there is any better place than within your module since it is a rather simple wrapper. Anything you would like then let me know, reject is also wellcome.

One feature I was considering is to have the locale reflected in the reponse, however I am not so familar with the locales of moment - I just know that I within the NexT ½ year will need German and Italian... Cheers

TotallyInformation commented 7 years ago

Many thanks for this Jes. Sorry it's taken me a while to merge. I'll be releasing as soon as I can.