dopeoplesay-cli
v3.0.0
Published
Command-line interface for Do People Say it.
Downloads
9
Readme
dopeoplesay-cli
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