Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bergkvist/crypto-ticker

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bergkvist/crypto-ticker

CLI tool to fetch the price of any cryptocurrency

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

What is this?

A command line interface for fetching the price of any cryptocurrency. It is written in NodeJs 10 (dubnium lts), and can easily be installed from the NPM package repository.

It uses the public CryptoCompare API to fetch prices.

Usage

crypto-ticker [base] [quote (default=USD)]

The first argument is the base currency. The second argument is the quote currency. None of the arguments are case sensitive.

A numeric value is returned, representing the rate of base/quote.

Install

Depending on your node installation, you might need to run this with sudo.

npm install -g @bergkvist/crypto-ticker

Examples

# Bitcoin price in Euro
$ crypto-ticker BTC EUR
 3148.33

# Ethereum price in US dollars (notice that USD is default):
$ crypto-ticker eth
 116.59

# It also works with fiat to fiat
# (The price of one Norwegian Krone in Japanese Yen)
$ crypto-ticker nok jpy
 11.5

Keywords

FAQs

Package last updated on 06 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc