dopeoplesay

Node.js wrapper for dopeoplesay.com

Usage no npm install needed!

<script type="module">
  import dopeoplesay from 'https://cdn.skypack.dev/dopeoplesay';
</script>

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",
    ...
  ]
}