0.1.3 • Published 6 years ago

coincap v0.1.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

coincap

coincap NPM module

Installation

npm install coincap

Example & Structure

All methods return a result in the following object structure

{
    result: boolean // indicates if call returned 200 or not
    statusCode: number // indicates statusCode number returned by call
    data: response // contains respose body. If result is set to true, this is a JSON object otherwise string
}
const result = await coincap.getCoins();
if (result.result) {
    console.log(result.data);
}

Usage

###getCoins

coincap.getCoins().then(result => {
    //do something
});

###map

coincap.map().then(result => {
    //do something
});

###front

coincap.front().then(result => {
    //do something
});

###global

coincap.global().then(result => {
    //do something
});

###getCoin(coin)

coincap.getCoin('BTC').then(result => {
    //do something
});
0.1.3

6 years ago

0.1.2

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.5

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago