docparse-scraper-dates
v1.0.1
Published
Parse the scraper date strings formatted as "YYYY MM DD" into moment.js objects
Downloads
3
Readme
Docparse Add Invoice
Parse the scraper date strings formatted as "YYYY MM DD" into moment.js objects
Dependency tracking by David
Usage
var eyespect = require('eyespect').inspector()
var getDates = require('docparse-scraper-dates');
var data = {
fromDate: '2011 01 19',
toDate: '2011 02 19',
}
getDates(data, function(err, dates) {
if (err) {
inspect(err, 'error adding invoice ids to upload')
return;
}
inspect(dates, 'parsed dates');
});
Installation
npm install docparse-scraper-dates
Example Installation
npm install docparse-scraper-dates eyespect