sindresorhus / random-itemLinks
Get a random item from an array
☆56Updated 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☆54Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 4 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- Indent each line in a string☆113Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- Filter object keys and values into a new object☆104Updated last year
- Wait for any promise to be fulfilled☆54Updated 3 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Split a string on the first occurrence of a given separator☆73Updated 3 weeks ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆141Updated this week
- Regular expression for matching issue references☆49Updated 11 months ago
- Convert a string/Buffer/Uint8Array to a readable stream☆90Updated 2 years ago
- Run promise-returning & async functions a specific number of times concurrently☆39Updated 3 years ago
- Check if a value is an object☆40Updated 4 years ago
- Toggle the CLI cursor☆111Updated last year
- Check if the process is running with elevated privileges☆41Updated 4 years ago
- Truncate a string to a specific width in the terminal☆87Updated 2 weeks ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆184Updated 2 years ago
- Make a function mimic another one☆95Updated 10 months ago
- Gracefully restore the CLI cursor on exit☆38Updated last year
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Generate a random integer☆86Updated 4 years ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Glob to regular expression with support for extended globs.☆74Updated last year
- Check if a path is a file, directory, or symlink☆78Updated last year
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated last year
- Split lines into an array of lines☆44Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year