sindresorhus / random-item
Get a random item from an array
☆57Updated 2 years ago
Alternatives and similar repositories for random-item:
Users that are interested in random-item are comparing it to the libraries listed below
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Filter object keys and values into a new object☆101Updated 9 months ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Check if a file path is a binary file☆44Updated 10 months ago
- Check if your package was installed globally☆70Updated last year
- Ensures a value is a valid error by making it one if not☆77Updated 2 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago
- Regular expression for matching issue references☆49Updated 5 months ago
- Determine if a function is an ES6 arrow function or not.☆22Updated 10 months ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Get the first fulfilled promise that satisfies the provided testing function☆74Updated 3 weeks ago
- Toggle the CLI cursor☆107Updated 7 months ago
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆61Updated 5 months ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Make a function mimic another one☆94Updated 4 months ago
- Lowercase the keys of an object☆40Updated last year
- Check if a string matches the name of a Node.js builtin module☆59Updated 2 weeks ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Strip the final newline character from a string/buffer☆36Updated 4 months ago
- Turn an object into a string of HTML attributes☆49Updated last year
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆61Updated 11 months ago
- Check if argv has a specific flag☆94Updated 3 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 3 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated 7 months ago
- Indent each line in a string☆113Updated 2 years ago
- Slice a string with ANSI escape codes☆47Updated 9 months ago
- Glob to regular expression with support for extended globs.☆72Updated 6 months ago