sindresorhus / path-typeLinks
Check if a path is a file, directory, or symlink
☆78Updated last year
Alternatives and similar repositories for path-type
Users that are interested in path-type are comparing it to the libraries listed below
Sorting:
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Check if your package was installed globally☆70Updated last year
- Find multiple RegExp matches in a string☆90Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Import a globally installed module☆58Updated last year
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 4 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Create an array without duplicates☆72Updated 4 years ago
- Resolve the path of a globally installed module☆41Updated last year
- Wait for any promise to be fulfilled☆54Updated 3 years ago
- Check if argv has a specific flag☆93Updated 4 years ago
- Returns an array filled with the specified input☆42Updated 3 years ago
- Create a Vinyl file from an actual file☆41Updated 2 years ago
- Rename a function☆46Updated last year
- Slice a string with ANSI escape codes☆50Updated last year
- Check if your code is running as an npm or yarn script☆65Updated 3 years ago
- Get the path of the parent module☆78Updated last year
- Check if the process is running as root user, for example, one started with `sudo`☆78Updated 3 years ago
- Copy a file☆121Updated 3 weeks ago
- A replacement for process.exit that ensures stdio are fully drained before exiting.☆67Updated 6 months ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 6 months ago
- Lazy number range generator☆81Updated last year
- Get namespaced config from the closest package.json☆120Updated last year
- Get the user agent of a recent Chrome version to pretend to be a browser in network requests☆36Updated last year
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago