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 todopeoplesay extraordinarydpsi sequel todpsi extraordinarydps sequel todps extraordinary
JSON output
Option -j, --json
provides JSON output formatter.
dps --json epic faildps -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