How to use the friendly-words.objects function in friendly-words

To help you get started, we’ve selected a few friendly-words examples, based on popular ways it is used in public projects.

github processing / p5.js-web-editor / client / modules / IDE / reducers / project.js View on Github external
const generateRandomName = () => {
  const adj = friendlyWords.predicates[Math.floor(Math.random() * friendlyWords.predicates.length)];
  const obj = friendlyWords.objects[Math.floor(Math.random() * friendlyWords.objects.length)];
  return `${adj} ${obj}`;
};

friendly-words

The Glitch word list, packaged into an NPM module for easy use.

MIT
Latest version published 1 year ago

Package Health Score

63 / 100
Full package analysis

Popular friendly-words functions