sindresorhus / random-itemLinks
Get a random item from an array
☆58Updated 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:
- Filter object keys and values into a new object☆105Updated last year
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Exit the process when the `esc` key is pressed☆58Updated 2 years ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Check if your package was installed globally☆71Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆62Updated 4 months ago
- Run promise-returning & async functions repeatedly until you end it☆48Updated last week
- Indent each line in a string☆115Updated 3 years ago
- Make a function mimic another one☆96Updated last year
- Strip the final newline character from a string/buffer☆38Updated last year
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆63Updated last year
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆57Updated last year
- Pick random items from a list☆57Updated 4 years ago
- Turn an object into a string of HTML attributes☆50Updated 2 years ago
- Check if argv has a specific flag☆96Updated 4 years ago
- Ensure a function is only called once☆165Updated last week
- Create a lazily evaluated value☆69Updated 4 years ago
- Truncate a string to a specific width in the terminal☆88Updated 3 months ago
- Check if a path is a file, directory, or symlink☆80Updated last week
- Create an array without duplicates☆74Updated 4 years ago
- Check if a string matches the name of a Node.js builtin module☆63Updated 11 months ago
- Regular expression for matching issue references☆49Updated last year
- Toggle the CLI cursor☆113Updated last year
- Get a random temporary file path☆81Updated 2 weeks ago
- Generate a random integer☆89Updated 4 months ago
- Get the directory of globally installed packages and binaries☆77Updated last week
- Reverse minimist. Convert an object of options into an array of command-line arguments☆187Updated 2 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Updated 5 months ago
- Split lines into an array of lines☆46Updated 2 years ago