obey-the-coin

1.3.1 • Public • Published

Obey The Coin

A simple coin flip cli, because making choices can be difficult:

  • Heads = yes
  • Tails = no

Never be indecisive again™

Install

$ npm install -g obey-the-coin

Example usage

otc flip

$ otc

Flips a coin 1 time, by default.

Options

times [num | -n]

otc flip

$ otc times [num]

Don't trust just one flip? No problem. Specify how many num times you want that bad boy to be spin - up to a max of 1,000,000,000.

otc flip

In the case of a tie, otc will flip once more to break it.

stats [delete | -D]

otc flip

$ otc stats

See how many times you've have to say yes, no, or your total flip count. To delete all logged stats, throw the -D or -delete flag.

Todo:

  • [x] Animation
  • [x] Result Logs
  • [ ] Tests
  • [ ] Themes
  • [ ] Better Animation
  • [ ] Improve code (kinda a persistent tasks amirite?)

Package Sidebar

Install

npm i obey-the-coin

Weekly Downloads

3

Version

1.3.1

License

MIT

Unpacked Size

422 kB

Total Files

13

Last publish

Collaborators

  • theonlymikeever