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:
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Filter object keys and values into a new object☆105Updated last year
- Exit the process when the `esc` key is pressed☆58Updated 2 years ago
- Run promise-returning & async functions repeatedly until you end it☆48Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆62Updated 3 months ago
- Indent each line in a string☆114Updated 3 years ago
- Check if your package was installed globally☆70Updated 2 years 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
- Split lines into an array of lines☆46Updated 2 years ago
- Check if argv has a specific flag☆96Updated 4 years ago
- Convert directories to glob compatible strings☆44Updated 6 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆145Updated 3 months ago
- Check if a value is an object☆42Updated 4 years ago
- Split a string on the first occurrence of a given separator☆75Updated 4 months ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆187Updated 2 years ago
- While a condition returns true, calls a function repeatedly, and then resolves the promise☆58Updated last year
- Generate a random integer☆89Updated 3 months ago
- Get the directory of globally installed packages and binaries☆77Updated 2 years ago
- Slice a string with ANSI escape codes☆50Updated 3 months ago
- Check if a string matches the name of a Node.js builtin module☆62Updated 10 months ago
- Linkify GitHub issue references☆47Updated 3 months ago
- Run promise-returning & async functions a specific number of times concurrently☆41Updated 4 years ago
- Truncate a string to a specific width in the terminal☆88Updated 2 months ago
- Get the first fulfilled promise that satisfies the provided testing function☆77Updated 10 months ago
- Convert a string/Buffer/Uint8Array to a readable stream☆94Updated 3 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Truncate a URL to a specific length☆62Updated 3 months ago