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
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Filter object keys and values into a new object☆101Updated 8 months ago
- Check if your package was installed globally☆70Updated last year
- Toggle the CLI cursor☆106Updated 6 months ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆56Updated 6 months ago
- Indent each line in a string☆113Updated 2 years ago
- Strip the final newline character from a string/buffer☆36Updated 3 months ago
- Check if a file path is a binary file☆44Updated 9 months ago
- Check if a string matches the name of a Node.js builtin module☆58Updated 9 months ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 2 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 2 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Gracefully restore the CLI cursor on exit☆36Updated 6 months ago
- Wait for any promise to be fulfilled☆55Updated 2 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Simple wildcard matching☆34Updated 3 years ago
- Ensures a value is a valid error by making it one if not☆77Updated 2 years ago
- Regular expression for matching issue references☆49Updated 4 months ago
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆58Updated 4 months ago
- Make a function mimic another one☆94Updated 3 months ago
- Get namespaced config from the closest package.json☆121Updated last year
- Turn an object into a string of HTML attributes☆49Updated last year
- Run promise-returning & async functions a specific number of times concurrently☆39Updated 3 years ago
- Check if the process is running with elevated privileges☆40Updated 3 years ago
- Get all email addresses in a string☆58Updated 3 years ago
- Get the user home directory with fallback to the system temp directory☆30Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆62Updated 3 years ago