UNPKG

data_scraper

Version:

data scraper for shirts4mike.com

14 lines (11 loc) 241 B
const fs = require('fs'); const shirts = require('./shirts'); // check if ./data exists if (fs.existsSync('./data')) { shirts.get(); } else { console.log('Creating ./data directory'); fs.mkdir('./data',() => { shirts.get(); }); }