Skip to content

An API to get a Ctrl+Alt+Del comic for a given date.

License

Notifications You must be signed in to change notification settings

asopinka/ctrlaltdel-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ctrl+Alt+Del Api

An api to get a Ctrl+Alt+Del comic for a given date. All rights reserved: http://www.cad-comic.com/

Install

npm install ctrlaltdel-api --save

Usage

To get a comic, pass in the date in the following format: YYYYMMDD (where YYYY = 4-digit year, MM = 2 digit month, DD = 2 digit day)

An example:

var cadApi = require('ctrlaltdel-api');

cadApi.getComic('20161010').then(function(comic) {
	// success!
	console.log(comic);
})
.catch(function(err) {
	// an error
	console.log(err);
});

Here is the result you'll get:

{
	title: 'The Starcaster Chronicles 05.01',
	image_src: 'http://cdn2.cad-comic.com/comics/cad-20161010-f705d.png',
	web_link: 'http://www.cad-comic.com/cad/20161010'
}

License

This API is licensed under the MIT license.

About

An API to get a Ctrl+Alt+Del comic for a given date.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages