New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@grigoryevandrey/convert

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 06 May 2022

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