0.0.1 • Published 9 years ago

congrats v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Congrats

Get congratulatory phrases, straight to your computer, for FREE!

congrats npm

This is largely based on the superb library from the prolific @sindresorhus. The phrase list itself is just a JSON file and can be used wherever you'd like (via cli or in your app). There are currently ~50 phrases. Create a PR and add some more!

Install

$ npm install --save congrats

Usage

var congrats = require('congrats');

congrats();
//=> you did it

congrats();
//=> great job

congrats.phrases;
// ['congrats', 'well done', ...]

API

congrats()

Type: string

Random congratulatory phrases.

congrats.phrases

Type: array

All the phrases.

CLI

$ npm install --global congrats
$ congrats --help

  Examples
    $ congrats
    legendary

    $ congrats --all
    ace
    amazing
    ...

  Options
    --all  Get all the phrases instead of a random word

Related Modules

License

MIT © Mark Thomas