Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
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.

latest
Source
npmnpm
Version
0.0.1
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

cryptocurrency

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