1.2.1 • Published 2 years ago
tim-and-eric-names v1.2.1
tim-and-eric-names
tim-and-eric-names is a small library that will return either an array of all of the names in names.json, a random name, or an array with a specified number of random names.
Install
npm install tim-and-eric-names
Browser support
<script src="https://unpkg.com/tim-and-eric-names@1.1.2/dist/index.umd.js"></script>
<script src="https://unpkg.com/tim-and-eric-names@1.1.2/dist/index.umd.min.js"></script>
Use
import timEricNames from 'tim-and-eric-names'
timEricNames.all; // Returns an array will all of the names.
timEricNames.random(); // Returns a random name.
timEricNames.random(3) // Returns an array with the specified number of random names.