sindresorhus / random-itemLinks
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
Sorting:
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Filter object keys and values into a new object☆103Updated last year
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Check if your package was installed globally☆70Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Check if argv has a specific flag☆95Updated 4 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 4 years ago
- Indent each line in a string☆113Updated 3 years ago
- Get the first fulfilled promise that satisfies the provided testing function☆76Updated 5 months ago
- Split a string on the first occurrence of a given separator☆74Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Map of nouns to their irregular plural form☆89Updated last year
- Create a lazily evaluated value☆70Updated 4 years ago
- Regular expression for matching issue references☆49Updated 10 months ago
- Wait for any promise to be fulfilled☆54Updated 3 years ago
- Make a function mimic another one☆94Updated 9 months ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆184Updated 2 years ago
- Toggle the CLI cursor☆110Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆141Updated 3 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 4 years ago
- Split lines into an array of lines☆44Updated last year
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated last year
- Simple cache config handling for your app or module☆21Updated 7 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 5 months ago
- Clean and beautiful options for minimist☆53Updated 2 years ago
- While a condition returns true, calls a function repeatedly, and then resolves the promise☆55Updated 9 months ago
- Regular expression for matching JavaScript comments☆32Updated 3 weeks ago
- Check if a value is an object☆40Updated 4 years ago