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:
- Get the first path that exists on disk of multiple paths☆62Updated 2 months ago
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Check if your package was installed globally☆70Updated 2 years ago
- Exit the process when the `esc` key is pressed☆58Updated 2 years ago
- Filter object keys and values into a new object☆105Updated last year
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated last year
- Get the visual width of the widest line in a string - the number of columns required to display it☆39Updated 2 years ago
- Run promise-returning & async functions repeatedly until you end it☆48Updated 4 years ago
- Indent each line in a string☆114Updated 3 years ago
- Check if argv has a specific flag☆95Updated 4 years ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Regular expression for matching issue references☆49Updated last year
- Linkify GitHub issue references☆47Updated 2 months ago
- Turn an object into a string of HTML attributes☆50Updated 2 years ago
- Check if a path is a file, directory, or symlink☆80Updated last year
- Make a function mimic another one☆97Updated last year
- A safer `.hasOwnProperty()`☆29Updated 2 years ago
- Split lines into an array of lines☆46Updated 2 years ago
- Wordwrap a string with ANSI escape codes☆130Updated 3 months ago
- While a condition returns true, calls a function repeatedly, and then resolves the promise☆58Updated last year
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆63Updated last year
- Truncate a URL to a specific length☆62Updated 2 months ago
- Strip the final newline character from a string/buffer☆38Updated last year
- Check if a value is an object☆42Updated 4 years ago
- Split a string on the first occurrence of a given separator☆75Updated 3 months ago
- Truncate a string to a specific width in the terminal☆88Updated last month
- Check if a string matches the name of a Node.js builtin module☆62Updated 9 months ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Check if a number is in a given range☆22Updated 4 years ago