cryptocurrency-converter
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.0 • Public • Published

    cryptocurrency-converter

    Calculator tool to convert between any two cryptocurrencies

    Install

    npm install cryptocurrency-converter
    
    

    Usage

    import { CryptocurrencyConverter } from 'cryptocurrency-converter';
    
    (async function test() {
      const cc = new CryptocurrencyConverter();
      const res = await cc.convert('BTC', 'BNB');
      console.log(res);
      // output: { BNB: 542.3 }
    })();
    
    

    OR

    import { CryptocurrencyConverter } from 'cryptocurrency-converter';
    
    const cc = new CryptocurrencyConverter();
    const res = await cc.convert('BTC', 'BNB');
    console.log(res);
    // output: { BNB: 542.3 }
    
    

    Keywords

    none

    Install

    npm i cryptocurrency-converter

    DownloadsWeekly Downloads

    1

    Version

    0.1.0

    License

    AGPL-3.0-or-later

    Unpacked Size

    43.6 kB

    Total Files

    15

    Last publish

    Collaborators

    • zlq4863947