Search results
1000+ packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Recursively resolve templates in an object, string or array.
Resolve the path of a module like `require.resolve()` but from a given path
Resolve a URI relative to an optional base URI
Resolve a directory that is either local, global or in the user's home directory.
Check if a path is inside another path
Generates an asynchronous resolver function from a PAC file
Resolve the path of a module like `require.resolve()` but from the current working directory
Returns `true` if the path appears to be relative.
The directory used by npm for globally installed npm modules.
Find the root directory of a Node.js project or npm package
Check if a module ID is resolvable with require()
Resole and parse `tsconfig.json`, replicating to TypeScript's behaviour
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`.
Find the first file matching a given pattern in the current directory or the nearest ancestor directory.
Detects if a file exists and returns the resolved filepath.
Find the first directory with a package.json, recursing up, starting with the given directory. Similar to look-up but does not support globs and only searches for package.json. Async and sync.
Import a module like with `require()` but from a given path
Resolve the path of a package regardless of it having an entry point
Find a file or directory by walking up parent directories — Zero dependencies
Import a module like with `require()` but from the current working directory