dopeoplesay
v3.0.0
Published
Node.js wrapper for dopeoplesay.com
Downloads
3
Readme
dopeoplesay
Node.js wrapper for Do People Say it.
Usage
yarn add dopeoplesay
npm install dopeoplesay
then:
const {search} = require('dopeoplesay');
async function main() {
const {definitions, collocations} = await search(dom, {
trim: true,
color: false,
});
console.log(collocations);
}
{
"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",
...
]
}