Search results

339 packages found

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 ago2844 dependents licensed under $MIT
385,267,516

Minify URLs by converting them from absolute to relative.

published version 0.2.7, 9 years ago369 dependents licensed under $MIT
64,129,496

Pollyfill for node.js `path.parse`, parses a filepath into an object.

published version 1.0.2, 8 years ago195 dependents licensed under $MIT
30,589,480

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

published version 1.0.0, 8 years ago440 dependents licensed under $MIT
37,233,449

Check if a URL is absolute

published version 4.0.1, 4 years ago366 dependents licensed under $MIT
47,363,346

Returns true if a filepath is a windows UNC file path.

published version 1.0.0, 8 years ago344 dependents licensed under $MIT
35,991,449

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, 8 years ago431 dependents licensed under $MIT
36,271,701

Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.

published version 0.1.2, 9 years ago344 dependents licensed under $MIT
36,025,284

fs.readdir with sync, async, and streaming APIs + filtering, recursion, absolute paths, etc.

published version 2.2.1, 7 years ago1 dependents licensed under $MIT
20,118,520

Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.

published version 3.0.0, 3 years ago58 dependents licensed under $MIT
10,505,191

redefine an svg path with absolute coordinates

published version 0.1.1, 12 years ago58 dependents licensed under $MIT
5,123,426

Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.

published version 4.0.0, 3 years ago1 dependents licensed under $MIT
3,377,923

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, 10 years ago191 dependents licensed under $MIT
1,914,889

Build an absolute URL from a base URL and a relative URL (RFC 1808). No dependencies!

published version 2.2.5, 3 years ago80 dependents licensed under $Apache-2.0
2,052,431

Check if a URL is relative

published version 4.0.0, 3 years ago139 dependents licensed under $MIT
2,309,089

Node.js 0.11.x path.isAbsolute as a separate module

published version 0.0.0, 11 years ago338 dependents licensed under $MIT
2,073,041

Compute the absolute value of a double-precision floating-point number.

published version 0.2.2, a year ago188 dependents licensed under $Apache-2.0
1,587,432

Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.

published version 2.0.2, 7 years ago2 dependents licensed under $MIT
814,815

A proxy to `path`, replacing `\` with `/` for all results

published version 3.1.20, a year ago73 dependents licensed under $ISC
519,969

Resolves a path to an absolute path. Supports tilde

published version 1.0.1, 7 years ago11 dependents licensed under $MIT
405,256