Skip to content

Commit

Permalink
publish npm && update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelooblan2016 committed Nov 14, 2021
1 parent 9e8a8b2 commit fee7269
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
**/node_modules
test.js
test.js
test
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@
JS Api for coinmarketcap (BY default polygon-ecosystem: crypto)
It displays the latest prices of coins accross polygon network.

## Installation
```bash
npm install api.coinmarketcap
```
## Usage
```bash
const ApiCoinMarketCap = require("./ApiCoinMarketCap.js");
const ApiCoinMarketCap = require('api.coinmarketcap');

( async () => {
let response = await ApiCoinMarketCap.getMarketPrices();

let cryptoList = response.cryptoCurrencyList;

console.log(cryptoList);
})();
```
20 changes: 19 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
{
"dependencies": {
"axios": "^0.24.0"
}
},
"name": "api.coinmarketcap",
"description": "JS Api for coinmarketcap (BY default polygon-ecosystem: crypto) It displays the latest prices of coins accross polygon network.",
"version": "1.0.0",
"main": "ApiCoinMarketCap.js",
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/marcelooblan2016/api.coinmarketcap.git"
},
"author": "marx oblan",
"license": "ISC",
"bugs": {
"url": "https://github.com/marcelooblan2016/api.coinmarketcap/issues"
},
"homepage": "https://github.com/marcelooblan2016/api.coinmarketcap#readme"
}

0 comments on commit fee7269

Please sign in to comment.