@naveen7892/comic-vine-api

1.0.2 • Public • Published

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); 
});

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @naveen7892/comic-vine-api

    Weekly Downloads

    4

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.9 kB

    Total Files

    3

    Last publish

    Collaborators

    • naveen7892