sindresorhus / node-defaults
Easily handle defaults for your options
☆73Updated last year
Related projects ⓘ
Alternatives and complementary repositories for node-defaults
- Check if a path is a file, directory, or symlink☆75Updated 3 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Filter object keys and values into a new object☆100Updated 5 months ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- Check if the process is running as root user, for example, one started with `sudo`☆79Updated 2 years ago
- Wordwrap a string with ANSI escape codes☆120Updated last year
- Check if a string matches the name of a Node.js builtin module☆58Updated 6 months ago
- Check if something is a Node.js stream☆111Updated last week
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆58Updated last year
- Start a promise chain☆55Updated 3 years ago
- Get the path of the caller module☆64Updated 3 years ago
- Get the path of the parent module☆77Updated last year
- Write a package.json file☆89Updated 3 months ago
- Ensures a value is a valid error by making it one if not☆78Updated 2 years ago
- when you want to fire an event no matter how a process exits.☆187Updated last year
- Get your PATH prepended with locally installed binaries☆104Updated last week
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆57Updated last month
- Get the directory of globally installed packages and binaries☆75Updated last year
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 3 years ago
- Check if a file path is a binary file☆42Updated 6 months ago
- Get a random temporary file path☆79Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 2 years ago
- Check if a value is a plain object☆101Updated 6 months ago
- Lazy number range generator☆82Updated 10 months ago
- Import a globally installed module☆57Updated 9 months ago
- Indent each line in a string☆112Updated 2 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Updated 3 years ago