JSPM

pass-fail-messages

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q24460F
  • License MIT

Replace boring pass and fail messages with popular movies and tv dialogues.

Package Exports

  • pass-fail-messages

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pass-fail-messages) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pass-fail-messages Build Status

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

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 --help

  Examples
    $ 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

License

MIT © Dutiyesh Salunkhe