sindresorhus / node-defaults
Easily handle defaults for your options
☆74Updated last year
Alternatives and similar repositories for node-defaults
Users that are interested in node-defaults are comparing it to the libraries listed below
Sorting:
- Detect the dominant newline character of a string☆55Updated last year
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Check if a path is a file, directory, or symlink☆78Updated 10 months ago
- Filter object keys and values into a new object☆101Updated last year
- Check if a string matches the name of a Node.js builtin module☆59Updated 3 months ago
- Check if your package was installed globally☆70Updated last year
- Wordwrap a string with ANSI escape codes☆125Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Get the path of the caller module☆64Updated 3 years ago
- Import a globally installed module☆58Updated last year
- Toggle the CLI cursor☆108Updated 10 months ago
- Check if something is a Node.js stream☆112Updated 7 months ago
- Start a promise chain☆58Updated 3 years ago
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆62Updated last month
- when you want to fire an event no matter how a process exits.☆191Updated last year
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Check if argv has a specific flag☆95Updated 3 years ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Truncate a string to a specific width in the terminal☆87Updated last year
- A better `Promise.race()`☆46Updated 2 years ago
- Write a package.json file☆88Updated 10 months ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Check if a value is a plain object☆102Updated last year
- Check if the process is running as root user, for example, one started with `sudo`☆78Updated 2 years ago
- Get the real path of the system temp directory☆83Updated 2 years ago
- If you use globs, this will make your code faster. Returns `true` if the given string looks like a glob pattern or an extglob pattern. Th…☆93Updated 2 years ago
- Lazy number range generator☆81Updated last year
- Reliably get the terminal window size☆140Updated last year
- Get your PATH prepended with locally installed binaries☆104Updated 7 months ago