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.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

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 8 months ago

Package Health Score

70 / 100
Full package analysis

Popular friendly-words functions