codebox / moment-precise-range

A moment.js plugin to display human-readable date/time ranges
https://codebox.net/pages/moment-date-range-plugin
MIT License
150 stars 91 forks source link

How do I use this? #11

Closed fatuhoku closed 8 years ago

fatuhoku commented 8 years ago

I'm a relative newbie at JavaScript and am unclear on how this package is supposed to be used.

codebox commented 8 years ago

You just need to include the momentjs library in your web page, followed by the readable-range.js file from this repo, then you should be able to run the code examples shown in the README

fatuhoku commented 8 years ago

@codebox okay, that's for browsers. How about on Node?

codebox commented 8 years ago

I have never used it with Node, I'm sure it won't be difficult to adapt though