@clubinvestbr/binance-format

0.0.18 • Public • Published

Latest Version GitHub last commit npm downloads

NPM

Build Status Coverage Status CodeCov Codacy Badge Codacy Badge

Binance Format

This project was developed to assist in formatting the binance symbols to better represent values in both the backend and front end. No api is used to query and perform the formatting, it is purely done with string manipulation to have more performance and availability.

Installation

NPM
npm install @clubinvestbr/format --save
YARN
yarn add @clubinvestbr/format

Getting started

Format
const { format } = require('@clubinvestbr/binance-format');

format("BTCETH");
// "BTC/ETH"

format("BTCUSDT");
// "BTC/USDT"

format("BTCWAVES");
// "BTC/WAVES"
Unformat
const { unformat } = require('@clubinvestbr/binance-format');

unformat("BTC/ETH");
// "BTCETH"

unformat("BTC/USDT");
// "BTCUSDT"

unformat("BTC/WAVES");
// "BTCWAVES"

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @clubinvestbr/binance-format

    Weekly Downloads

    18

    Version

    0.0.18

    License

    MIT

    Unpacked Size

    157 kB

    Total Files

    10

    Last publish

    Collaborators

    • flaviobrognara
    • rodrigooler