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
- Check if a path is a file, directory, or symlink☆78Updated 9 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 2 months ago
- Wordwrap a string with ANSI escape codes☆123Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Write a package.json file☆88Updated 9 months ago
- Check if something is a Node.js stream☆111Updated 6 months ago
- Get your PATH prepended with locally installed binaries☆104Updated 6 months ago
- Filter object keys and values into a new object☆101Updated 11 months ago
- Check if a file path is a binary file☆44Updated last year
- Toggle the CLI cursor☆107Updated 9 months ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Check if the process is running as root user, for example, one started with `sudo`☆78Updated 2 years ago
- Check if argv has a specific flag☆95Updated 3 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Truncate a string to a specific width in the terminal☆87Updated last year
- A static list of the Node.js builtin modules from the latest Node.js version☆121Updated 2 months ago
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆83Updated 8 months ago
- Convert a value to an array☆129Updated 3 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Get the path of the parent module☆77Updated last year
- Find the closest package.json file☆163Updated last year
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago
- Get the path of the caller module☆64Updated 3 years ago
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 4 years ago
- Check if a value is a plain object☆102Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago