Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rickycodes/8ball
magic :8ball: :sparkles:
https://github.com/rickycodes/8ball
Last synced: 5 days ago
JSON representation
magic :8ball: :sparkles:
- Host: GitHub
- URL: https://github.com/rickycodes/8ball
- Owner: rickycodes
- Created: 2016-04-19T21:22:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-28T08:03:32.000Z (over 6 years ago)
- Last Synced: 2024-10-02T16:37:26.019Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## The Magic 8 Ball
The Magic 8 Ball is a toy used for fortune-telling or seeking advice.
### install:
```
$ npm i --save 8ball
```### usage:
```js
const eightball = require('8ball')()
console.log(`do you need a new lease on life? ${eightball}`)
// do you need a new lease on life? it is decidedly so
```### cli:
8ball or 🎱
```
$ npm i -g 8ball
```
```
$ 8ball 'will i be pretty?'
reply hazy, try again
```
```
$ 🎱 'will i be rich?'
concentrate and ask again
```
also accepts stdin:
```shell
$ echo 'will i be rich' | 🎱
please ask a question
```
_(no `?` match in stdin)_### requirements:
node `>=4`