Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dutiyesh/pass-fail-messages
📟 Replace boring pass and fail messages with popular movies and tv dialogues.
https://github.com/dutiyesh/pass-fail-messages
cli cli-app fail-message javascript message pass-message terminal
Last synced: about 1 month ago
JSON representation
📟 Replace boring pass and fail messages with popular movies and tv dialogues.
- Host: GitHub
- URL: https://github.com/dutiyesh/pass-fail-messages
- Owner: dutiyesh
- License: mit
- Created: 2018-07-04T18:33:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-04T18:55:01.000Z (over 6 years ago)
- Last Synced: 2024-09-13T00:56:09.644Z (2 months ago)
- Topics: cli, cli-app, fail-message, javascript, message, pass-message, terminal
- Language: JavaScript
- Homepage:
- Size: 52.7 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# pass-fail-messages [![Build Status](https://travis-ci.org/dutiyesh/pass-fail-messages.svg?branch=master)](https://travis-ci.org/dutiyesh/pass-fail-messages)
> Replace boring pass and fail messages with popular movies and tv dialogues.
*The lists are just JSON files and can be used wherever.*
## Install
```
$ npm install --save pass-fail-messages
```## Usage
```js
const passFailMessages = require('pass-fail-messages');passFailMessages.passRandom();
//=> 'The force is strong with this one.'
```## API
### .pass
Type: `array`
Pass message.
### .fail
Type: `array`
Fail message.
### .all
Type: `array`
Both pass and fail messages.
### .passRandom()
Type: `function`
Random pass message.
### .failRandom()
Type: `function`
Random fail message.
### .allRandom()
Type: `function`
Random pass or fail message.
## CLI
```
$ npm install --global pass-fail-messages
``````
$ pass-fail --helpExamples
$ pass-fail
The force is strong with this one.$ pass-fail --all --type pass
A hero can be anyone.
GGGGGGGGGiddy-up!
...Options
--all Get all messages instead of a random message
--type Type of message: pass|fail|all Default: all
```## Related
- [yes-no-words](https://github.com/sindresorhus/yes-no-words) - Get yes/no like words
## License
MIT © Dutiyesh Salunkhe