UNPKG

flowing-moments

Version:

Calculates a stream of _dates_ extending from any given date (that moment.js can recognize), or the current date when none is provided. Many configuration options including: startDay, format, stride, exclude, limit.

15 lines (10 loc) 292 B
var main = require('./lib/main') if (! module.parent) { var cli = require('./lib/cli')(process.argv.slice(2)) main(cli.date, cli.opts, function(err, data) { if (err) throw err process.stdout.on('error', process.exit) data.pipe(process.stdout) }) } module.exports = main