Search results

455 packages found

Tests whether one path is inside another path

published version 1.0.2, 8 years ago453 dependents licensed under $(WTFPL OR MIT)
42,410,317

Extract the Node.js module details like name and base path given an abosulte path to a file inside the module

published version 1.0.3, 8 years ago53 dependents licensed under $MIT
38,613,858

Whether or not a given path is relative

published version 2.0.0, 7 years ago19 dependents licensed under $MIT
2,532,532

Returns `true` if the path appears to be relative.

published version 1.0.0, 7 years ago459 dependents licensed under $MIT
29,307,472

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.

published version 3.0.0, 7 years ago2931 dependents licensed under $MIT
268,702,659

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`.

published version 1.0.0, 7 years ago445 dependents licensed under $MIT
28,871,041

Fast relative path resolution

published version 1.0.0, 4 years ago4 dependents licensed under $MIT
684,247

Return the relative path from one path to another

published version 1.0.2, 5 years ago13 dependents licensed under $MIT
49,609

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.

published version 3.0.0, 17 days ago19 dependents licensed under $MPL-2.0
161,421

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.

published version 3.0.2, 9 years ago198 dependents licensed under $MIT
1,589,415

require and resolve modules relative to a path of your choice

published version 0.8.7, 11 years ago154 dependents licensed under $MIT
5,331,849

remove or replace relative path for files

published version 0.4.0, 7 years ago216 dependents licensed under $MIT
249,508

Read files with path relative to the current module without annoying boilerplate code

published version 1.2.0, 9 years ago48 dependents licensed under $MIT
797,989

Get the depth of a file/URL path.

published version 1.0.0, 5 years ago3 dependents licensed under $ISC
12,974

Absolute Path

published version 1.0.6, 3 years ago10 dependents licensed under $MIT
2,578

Cross-platform file path sorting. Sort an array of path strings or objects containing path strings.

published version 1.0.0, 6 years ago5 dependents licensed under $MIT
2,166

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.

published version 1.0.1, 5 years ago6 dependents licensed under $MIT
4,135

A helper function to resolve a module name or path in relation to the specified context and require it.

published version 3.0.0, 15 days ago8 dependents licensed under $MPL-2.0
144,057

Allow to find and retrieve some data (such as config file) related to a given path (with cache)

published version 0.1.4, 6 years ago0 dependents licensed under $MIT
184,091

Loader for Node native extensions resolve relative path situation

published version 0.0.3, 6 years ago0 dependents
3,277