Search results
455 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Tests whether one path is inside another path
Extract the Node.js module details like name and base path given an abosulte path to a file inside the module
Whether or not a given path is relative
Returns `true` if the path appears to be relative.
Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.
- absolute
- backslash
- delimiter
- file
- file-path
- filepath
- fix
- forward
- fp
- fs
- normalize
- path
- relative
- separator
- View more
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`.
Fast relative path resolution
Return the relative path from one path to another
Provides a helper function to expand a path to a normalized absolute path. This function also expands dot, tilde, and tilde plus when used as the first path segment.
Get the relative filepath from path A to path B. Calculates from file-to-directory, file-to-file, directory-to-file, and directory-to-directory.
require and resolve modules relative to a path of your choice
remove or replace relative path for files
Read files with path relative to the current module without annoying boilerplate code
Get the depth of a file/URL path.
Absolute Path
Cross-platform file path sorting. Sort an array of path strings or objects containing path strings.
- sort
- sorting
- path
- paths
- file
- files
- filepath
- dir
- directory
- directories
- folder
- subdirectory
- relative
- absolute
- View more
Finds the longest common parent directory path in an array of file path strings or custom objects. Also returns sub and base parts for each path.
A helper function to resolve a module name or path in relation to the specified context and require it.
Allow to find and retrieve some data (such as config file) related to a given path (with cache)
Loader for Node native extensions resolve relative path situation