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:
- Check if your package was installed globally☆69Updated 2 years ago
- Filter object keys and values into a new object☆104Updated last year
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆61Updated 2 months ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆62Updated last year
- Indent each line in a string☆113Updated 3 years ago
- Generate a random integer☆88Updated 2 months ago
- Exit the process when the `esc` key is pressed☆57Updated last year
- Run promise-returning & async functions repeatedly until you end it☆47Updated 4 years ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Toggle the CLI cursor☆112Updated last year
- Get the directory of globally installed packages and binaries☆76Updated 2 years ago
- List of text file extensions☆58Updated last year
- Truncate a string to a specific width in the terminal☆87Updated 3 weeks ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆143Updated 2 months ago
- Make a function mimic another one☆96Updated last year
- Wordwrap a string with ANSI escape codes☆130Updated 2 months ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Check whether a request can be retried based on the `error.code`☆81Updated 3 years ago
- Check if a string is HTML☆95Updated 2 months ago
- Check if a string matches the name of a Node.js builtin module☆61Updated 8 months ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated last year
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Truncate a URL to a specific length☆61Updated last month
- Split a string on a given character or characters, with support for escaping.☆60Updated 3 years ago
- Check if argv has a specific flag☆94Updated 4 years ago
- Map of nouns to their irregular plural form☆89Updated 2 weeks ago
- Regular expression for matching issue references☆49Updated last year