sindresorhus / path-type
Check if a path is a file, directory, or symlink
☆78Updated 9 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 4 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Returns an array filled with the specified input☆42Updated 2 years ago
- Import a globally installed module☆58Updated last year
- Resolve the path of a globally installed module☆41Updated last year
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 4 years ago
- Lazy number range generator☆81Updated last year
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Get the path of the parent module☆77Updated last year
- Add `module.exports` for Babel and TypeScript compiled code☆35Updated last year
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Extract the article title of a HTML document☆54Updated 3 years ago
- Easily handle defaults for your options☆74Updated last year
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆55Updated 2 years ago
- Convert directories to glob compatible strings☆44Updated 5 years ago
- A module which will endeavor to guess your terminal's level of color support.☆24Updated 6 years ago
- Prints the current date and time as a UNIX timestamp or custom format☆46Updated 3 years ago
- Import a module like with `require()` but from a given path☆86Updated 2 years ago
- A replacement for process.exit that ensures stdio are fully drained before exiting.☆66Updated 2 months ago
- Get namespaced config from the closest package.json☆121Updated last year
- Find multiple RegExp matches in a string☆92Updated 2 years ago
- Rename a function☆46Updated last year
- Check if a file path is a binary file☆44Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- Check if a string matches the name of a Node.js builtin module☆59Updated 2 months ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago