random-fruit

It gives you a random fruit, why? because why not.

Usage no npm install needed!

<script type="module">
  import randomFruit from 'https://cdn.skypack.dev/random-fruit';
</script>

README

random-fruit

  • It gives you a random fruit, why? because why not.

Usage:

const randomFruit = require('random-fruit');

console.log(randomFruit.random());
// Apple

console.log(randomFruit.list);
// Prints all fruits in the json file.

License:

  • Apache 2.0