Search results
1000+ packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Resolve the path of a module like `require.resolve()` but from a given path
Find a file or directory by walking up parent directories
Check if a path is inside another path
Resolve the path of a module like `require.resolve()` but from the current working directory
Find the root directory of a Node.js project or npm package
The directory used by npm for globally installed npm modules.
Resolve a directory that is either local, global or in the user's home directory.
Returns `true` if the path appears to be relative.
Detects if a file exists and returns the resolved filepath.
Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.
Get the npm global path prefix.
Import a module like with `require()` but from a given path
Import a module like with `require()` but from the current working directory
Resolve the path to the user's local or global .gitconfig.
Resolve the path of a globally installed module
Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)
Resolve a relative path against a root path with validation
Resolve the path of a package regardless of it having an entry point
Check if a module ID is resolvable with require()
Find a file or directory by walking up parent directories — Zero dependencies