sindresorhus / path-type
Check if a path is a file, directory, or symlink
☆78Updated 8 months ago
Alternatives and similar repositories for path-type:
Users that are interested in path-type are comparing it to the libraries listed below
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 4 years ago
- Import a globally installed module☆58Updated last year
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Returns an array filled with the specified input☆42Updated 2 years ago
- Resolve the path of a globally installed module☆41Updated last year
- Lazy number range generator☆81Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Clean and beautiful options for minimist☆53Updated 2 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Rename a function☆46Updated last year
- Repeat a string - fast☆34Updated 3 years ago
- Check if a file path is a binary file☆44Updated 11 months ago
- Prints the current date and time as a UNIX timestamp or custom format☆46Updated 3 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆55Updated 2 years ago
- Get namespaced config from the closest package.json☆121Updated last year
- Give me a string and I'll tell you if it's a valid npm package license string☆28Updated 3 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated last month
- List of node.js builtin modules☆38Updated last year
- Get the path of the parent module☆77Updated last year
- Check if argv has a specific flag☆95Updated 3 years ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Check if the process is running as root user, for example, one started with `sudo`☆78Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Find multiple RegExp matches in a string☆92Updated 2 years ago