sindresorhus / random-itemLinks
Get a random item from an array
☆56Updated 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:
- Check if your package was installed globally☆70Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Filter object keys and values into a new object☆103Updated last year
- Indent each line in a string☆113Updated 3 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Run promise-returning & async functions repeatedly until you end it☆45Updated 4 years ago
- Wordwrap a string with ANSI escape codes☆127Updated last year
- Create a lazily evaluated value☆69Updated 4 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆141Updated 3 years ago
- Wait for any promise to be fulfilled☆54Updated 3 years ago
- Check if argv has a specific flag☆93Updated 4 years ago
- Truncate a URL to a specific length☆61Updated 4 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆184Updated 2 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Split lines into an array of lines☆44Updated last year
- Check if a string matches the name of a Node.js builtin module☆59Updated 5 months ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Get a random temporary file path☆80Updated 2 years ago
- Regular expression for matching issue references☆49Updated 10 months ago
- Generate a random integer☆86Updated 4 years ago
- While a condition returns true, calls a function repeatedly, and then resolves the promise☆55Updated 10 months ago
- Make a function mimic another one☆95Updated 9 months ago
- Truncate a string to a specific width in the terminal☆87Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year
- Check if the process is running with elevated privileges☆41Updated 4 years ago
- Check if a value is an object☆40Updated 4 years ago
- Make a promise always fulfill with its actual fulfillment value or rejection reason☆53Updated 2 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago