Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

cryptoticker-ts

jayserdny14MIT1.0.0TypeScript support: included

Rewritten version of the cryptoticker library using TS

cryptocurrency, cryptoticker, blockchain

readme

Crypto Ticker

This NPM module is able to get the price of certains cryptocurrency from the following websites:

This project was originally created by codingdefined and I decided to make a strongly typed version of his library.

How To Install?

To install this dependence, you only need to run the following command in your command line:

npm i cryptoticker-ts --save

Examples

Javascript

var crypto = require('cryptoticker-ts');
crypto.getPrice('bitcoin').then(data => {
    console.log(data)
});
Output should be an array with the prices

TypeScript

import * as crypto from 'cryptoticker-ts';
crypto.getPrice('bitcoin').then(data => {
    console.log(data)
});
Output should be an array with the prices

AMD

define(function(require,exports,module) {
  var crypto = require('cryptoticker-ts');
});

How To Contribute?

To contribute to this library, fork the repo, make your changes, run the npm test command and if it pass, make a PR (Pull Request)