UNPKG

leagueofcomicgeeks

Version:

Unofficial Node.js library for interacting with League of Comic Geeks

16 lines (12 loc) 366 B
/* eslint-disable no-console */ const moment = require('moment'); const lofcg = require('../'); const wednesday = moment().day(3).format('YYYY-MM-DD'); // Get new comics for next week lofcg.newComics.get(wednesday, (err, newComics) => { if (err) { console.log('An error has occurred getting new comics:', err); return; } console.log(newComics); });