https://github.com/roccomuso/flip-a-coin
Instant Node.js coin toss. Heads or tails? Just flip a coin
https://github.com/roccomuso/flip-a-coin
coin flip head module nodejs tail
Last synced: 7 months ago
JSON representation
Instant Node.js coin toss. Heads or tails? Just flip a coin
- Host: GitHub
- URL: https://github.com/roccomuso/flip-a-coin
- Owner: roccomuso
- Created: 2017-03-15T16:41:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T17:01:39.000Z (over 8 years ago)
- Last Synced: 2025-02-26T10:47:23.880Z (8 months ago)
- Topics: coin, flip, head, module, nodejs, tail
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flip a coin
Instant Node.js coin toss. Heads or tails? Just flip a coin.## Global install
$ npm install -g flipacoin
### Usage
$ flip
> head## Embedded
```javascript
var flip = require('flipacoin')flip()
// 'head' or 'tail'flip('num')
// 1 or 0flip('bool')
// true or false
```