1.0.2 • Published 4 years ago

@naveen7892/comic-vine-api v1.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

GitHub issues install size

Communicates with ComicVine API

Install

$ npm install @naveen7892/comic-vine-api

Usage

const cv = require("@naveen7892/comic-vine-api");

// Gets recently updated 10 characters
cv.getRecentlyUpdatedCharacters(0, 10, "", "")
.then(response => {
    response.json().then((r) => {
        console.log(r);
    }, (e) => {
        console.log(e)
    });
    // res.send('fofa')
}).catch(err => { 
    console.log(err); 
});

// Gets my favorite hero "Iron Man" details
cv.getCharacterById(1455)
.then(response => {
    response.json().then((r) => {
        console.log(r);
    }, (e) => {
        console.log(e)
    });
    // res.send('fofa')
}).catch(err => { 
    console.log(err); 
});