Giter VIP home page Giter VIP logo

cli-clock's Introduction

CLI-CLOCK

Installation

> npm install cli-clock -g

Cli-Clock is a clock for your terminal. Once you run the program, it will display the current time on your terminal window and it will update every thirty seconds. The clock is formed by two characters, which are chosen from a preselected set of characters or passed as arguments by the user. Once the program starts, the application will measure the size of the current terminal window and display the time in the center of the window. * * Example usage:

Usage

Usage: cli-clock [options]

Options:

    -h, --help                    output usage information
    -V, --version                 output the version number
    -b, --background [character]  baground character
    -f, --foreground [character]  foreground characters color
    -c, --colors [item(s)]        characters colors for the foreground and background, respectively
    -t, --twelve-hours            twelve hour format

Examples

$ cli-clock 
$ cli-clock -b " " -f "X"
$ cli-clock -b " " -f X
$ cli-clock -b O -f ๐Ÿถ 
$ cli-clock -b O -f X -c "red,green" 
$ cli-clock -b O -f X -c "red,green" -t
$ cli-clock -x "LTC-USD" -f ๐Ÿถ
$ cli-clock -x "ETH-USD" -f o -b x

screenshot

cli-clock's People

Contributors

alexdmejias avatar thenortheestern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sbussetti

cli-clock's Issues

time format

Not sure how or why this started happening but setting the time format to 12 hour format gives this message:
/usr/local/lib/node_modules/cli-clock/src/index.ts:209 const thisRow = currentChar[i].split(''); ^ TypeError: Cannot read property '0' of undefined at Clock.getNewBufferWithData (/usr/local/lib/node_modules/cli-clock/src/index.ts:209:36) at Clock.setFg (/usr/local/lib/node_modules/cli-clock/src/index.ts:180:22) at Clock.update (/usr/local/lib/node_modules/cli-clock/src/index.ts:232:10) at Object.<anonymous> (/usr/local/lib/node_modules/cli-clock/cli-clock.js:30:7) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.