sindresorhus / path-type
Check if a path is a file, directory, or symlink
☆75Updated 3 months ago
Related projects ⓘ
Alternatives and complementary repositories for path-type
- Get the directory of globally installed packages and binaries☆75Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated last year
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Import a globally installed module☆57Updated 10 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Wait for any promise to be fulfilled☆55Updated 2 years ago
- Returns an array filled with the specified input☆43Updated 2 years ago
- Resolve the path of a globally installed module☆41Updated last year
- Check if your package was installed globally☆70Updated last year
- Get the path of the parent module☆77Updated last year
- `Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome☆45Updated 3 years ago
- Lazy number range generator☆82Updated 10 months ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Check if a file path is a binary file☆43Updated 6 months ago
- Check if argv has a specific flag☆94Updated 3 years ago
- Import a module like with `require()` but from a given path☆86Updated 2 years ago
- Easily handle defaults for your options☆73Updated last year
- Write a package.json file☆89Updated 3 months ago
- Rename a function☆45Updated last year
- Copy a file☆121Updated last year
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Get namespaced config from the closest package.json☆120Updated last year
- Clean and beautiful options for minimist☆54Updated 2 years ago
- A better `Promise.race()`☆46Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆58Updated 6 months ago
- Turn an object into a string of HTML attributes☆49Updated last year
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 3 years ago
- Exit the process when the `esc` key is pressed☆57Updated 11 months ago
- Find multiple RegExp matches in a string☆93Updated 2 years ago