Socket
Socket
Sign inDemoInstall

@grigoryevandrey/convert

Package Overview
Dependencies
37
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @grigoryevandrey/convert

A cli tool to convert one currency into another using CoinMarketCap API


Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Install size
3.29 MB
Created
Weekly downloads
 

Readme

Source

Convert

Easy to use cli for fetching quotes from CoinMarketCap.

Installation

npm i -g @grigoryevandrey/convert

To get help, use:

convert -h

Providing CoinMarketCap API key

To use this cli, you must provide your CoinMarketCap API key in CMC_API_KEY environment variable:

export CMC_API_KEY=<my_api_key>

Usage

Before using, make sure you have exported API key to enviroment variable.

convert <from_ticker> <to_ticker> [<amount>]

Examples

Regular usage:

convert BTC USD 10

You can omit amount, thus it will be set to 1:

convert BTC USD

Keywords

FAQs

Last updated on 06 May 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc