sindresorhus / random-item
Get a random item from an array
☆57Updated 2 years ago
Alternatives and similar repositories for random-item:
Users that are interested in random-item are comparing it to the libraries listed below
- Exit the process when the `esc` key is pressed☆56Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Filter object keys and values into a new object☆101Updated 9 months ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated 7 months ago
- Simple wildcard matching☆34Updated 3 years ago
- Run promise-returning & async functions a specific number of times concurrently☆39Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 3 years ago
- Linkify GitHub issue references☆46Updated 5 months ago
- Mimic a Node.js HTTP response stream☆59Updated last year
- Turn an object into a string of HTML attributes☆49Updated last year
- Regular expression for matching issue references☆49Updated 5 months ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 3 weeks ago
- Check when the DOM has loaded like `DOMContentLoaded`☆109Updated 7 months ago
- Iterate over promises serially☆50Updated 2 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago
- Check if a filepath is a video file☆31Updated 10 months ago
- Truncate a URL to a specific length☆61Updated 3 years ago
- Simplified high resolution timing☆79Updated 6 months ago
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- Get a random temporary file path☆79Updated 2 years ago
- Get a Gravatar image from an identifier, such as an email☆41Updated 3 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- A better `Promise.race()`☆46Updated 2 years ago
- Write a package.json file☆88Updated 7 months ago
- Indent each line in a string☆113Updated 2 years ago
- Strip the final newline character from a string/buffer☆36Updated 4 months ago
- Truncate a string to a specific width in the terminal☆87Updated last year