sindresorhus / random-item
Get a random item from an array
☆57Updated 3 years ago
Alternatives and similar repositories for random-item:
Users that are interested in random-item are comparing it to the libraries listed below
- 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
- Check if your package was installed globally☆70Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Run promise-returning & async functions a specific number of times concurrently☆39Updated 3 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆59Updated 8 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Detects the casing of the input string (camelcase, lowercase, snakecase, kebabcase, snakecase, uppercase etc).☆17Updated 2 months ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Filter object keys and values into a new object☆101Updated 10 months ago
- Strip the final newline character from a string/buffer☆36Updated 5 months ago
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated last month
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆62Updated last week
- A better `Promise.race()`☆46Updated 2 years ago
- Check if a file path is a binary file☆44Updated 11 months ago
- Regular expression for matching issue references☆49Updated 6 months ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆61Updated last year
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Simplified high resolution timing☆80Updated 7 months ago
- Make a function mimic another one☆94Updated 5 months ago
- Linkify GitHub issue references☆46Updated 6 months ago
- Cleanup expired items in a Map☆18Updated 3 years ago
- Check if argv has a specific flag☆95Updated 3 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Detect whether a terminal emulator supports hyperlinks☆56Updated 2 months ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 3 years ago
- Truncate a string to a specific width in the terminal☆87Updated last year