0.1.3 • Published 3 years ago

cracket v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

cracket

Small CLI app to track cryptocurrency trends.

Powered by CoinGecko.

Install

$ npm install --global cracket

Usage

By running the cli app without arguments you'll open it with the default behaviour. You can move around using the arrow keys to select a currency or to switch pages. You can also use Tab or Tab+Shift to select a currency.

By pressing Return/Enter when a currency is selected you'll open its detail view which contains some more detailed info and a graph that shows the trends.

You can always type the ? key in any screen in order to get help on how to navigate.

$ cracket --help

  Usage
    $ cracket

  Options
      --per-page  Fixed results per page
      --columns  Fixed columns to show (name,price,1h,24h,7d,volume,marketCap)

  Usage
    Use the arrow keys to switch page.
    Press 'q' or 'Ctrl+C' to exit.

  Examples
    $ cracket --per-page=1 --columns=name,price,1h,24h,7d

    Name      Price     1h        24h       7d
    Bitcoin   $18929.9  -0.34865  -1.03432  7.24047

Libraries

This app uses the following libraries:

  • Ink - Build CLI apps using React and Node.js
  • React(https://reactjs.org] - A JavScript library for building user interfaces
  • xstate - State machines in JavaScript
  • got - HTTP request library
  • swr - React hooks library for data fetching
  • asciichart - Create ASCII line charts in pure JavaScript
  • term-size - Get terminal size