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:
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆62Updated 4 months 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
- Turn an object into a string of HTML attributes☆50Updated 2 years ago
- Exit the process when the `esc` key is pressed☆58Updated 2 years ago
- Check if your package was installed globally☆71Updated 2 years ago
- Indent each line in a string☆115Updated 3 years ago
- While a condition returns true, calls a function repeatedly, and then resolves the promise☆58Updated last year
- Run promise-returning & async functions repeatedly until you end it☆48Updated 4 years ago
- Generate a random integer☆89Updated 4 months ago
- Map of nouns to their irregular plural form☆91Updated 2 months ago
- Regular expression for matching issue references☆49Updated last year
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Check if argv has a specific flag☆96Updated 4 years ago
- Wordwrap a string with ANSI escape codes☆130Updated 4 months ago
- Get the first fulfilled promise that satisfies the provided testing function☆77Updated 11 months ago
- Truncate a string to a specific width in the terminal☆88Updated 2 months ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆187Updated 2 years ago
- Truncate a URL to a specific length☆62Updated 3 months ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆144Updated 4 months ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆39Updated 2 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Toggle the CLI cursor☆113Updated last year
- Clean and beautiful options for minimist☆53Updated 3 years ago
- Split lines into an array of lines☆46Updated 2 years ago
- Regular expression for matching reserved filename characters☆52Updated 4 months ago
- Convert a string/Buffer/Uint8Array to a readable stream☆94Updated 3 years ago
- Check if a value is an object☆42Updated 4 years ago