2.0.0
moment has been moved to a peerDependency
which means that moment-range
will play nice in node-land as a moment plugin. going forward you'll need to add moment
to your dependencies and require it before moment-range
, e.g.:
package.json
{
"dependencies": {
"moment": "~2",
"moment-range": "~2"
}
}
code:
var moment = require('moment');
var DateRange = require('moment-range');