dopeoplesay-cli

3.0.0 • Public • Published

dopeoplesay-cli

Build Status Coverage Status

A command-line interface for Do People Say it.

Usage

npm install -g dopeoplesay-cli

You can call the CLI either from dopeoplesay, dpsi or dps:

dopeoplesay <keyword>
dopeoplesay sequel to
dopeoplesay extraordinary
dpsi sequel to
dpsi extraordinary
dps sequel to
dps extraordinary

JSON output

Option -j, --json provides JSON output formatter.

dps --json epic fail
dps -j epic fail

You'll get a result like this:

{
  "definitions": [
    {
      "label": "epic fail",
      "pos": "noun",
      "definitions": [
        "Utter, total failure, especially where success should have been reasonably expected."
      ],
      "source": "Wiktionary"
    },
    ...
  ],
  "collocations": [
    "Bravo, bravo on the epic fail!",
    "So, that's an epic fail then?",
    "Not giving myself an epic fail for going wheat on",
    ...
  ]
}

This can be combined with various pipelines and workflows.

dps --json "epic fail" | jq ".collocations[0]" | pbcopy

Readme

Keywords

Package Sidebar

Install

npm i dopeoplesay-cli

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

11 kB

Total Files

5

Last publish

Collaborators

  • uetchy