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
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated 11 months ago
- Filter object keys and values into a new object☆102Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- Toggle the CLI cursor☆110Updated 11 months ago
- Check if your package was installed globally☆70Updated last year
- Indent each line in a string☆113Updated 3 years ago
- Regular expression for matching issue references☆49Updated 9 months ago
- Check if a path is a file, directory, or symlink☆78Updated 11 months ago
- Check if a file path is a binary file☆46Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 4 months ago
- Check if a value is an object☆40Updated 4 years ago
- Wait for any promise to be fulfilled☆54Updated 3 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 4 years ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆61Updated last year
- Get a Gravatar image from an identifier, such as an email☆41Updated 3 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Check if argv has a specific flag☆95Updated 3 years ago
- Truncate a URL to a specific length☆61Updated 4 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆40Updated 4 years ago
- Truncate a string to a specific width in the terminal☆87Updated last year
- Regular expression for matching reserved filename characters☆50Updated 3 years ago
- Make a function mimic another one☆94Updated 8 months ago
- Map of nouns to their irregular plural form☆89Updated last year
- Split lines into an array of lines☆44Updated last year
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 3 years ago
- Strip the final newline character from a string/buffer☆36Updated 8 months ago