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

cryptocurrency-info

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cryptocurrency-info

All cryptocurrencies meta information.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cryptocurrency-info

All cryptocurrencies meta information.

How to use

/* eslint-disable import/no-unresolved,no-console */
const { getCurrencyInfo } = require("cryptocurrency-info");

console.info(getCurrencyInfo("BTC"));

API Manual

There is only one API in this library:

/**
 * Get the currency info.
 *
 * @param symbol The currency symbol, e.g., BTC, ETH, EOS, USDT, etc.
 * @returns The CurrencyInfo
 */
export declare function getCurrencyInfo(symbol: string): CurrencyInfo;

Which returns an CurrencyInfo:

export interface CurrencyInfo {
  symbol: string;
  category: "coin" | "token";
  platform?: string; // Only tokens have platforms, coins don't
}

Keywords

FAQs

Package last updated on 18 Feb 2020

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