Search results

178 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 ago2951 dependents licensed under $MIT
178,845,074

Check if a path exists

published version 5.0.0, 3 years ago4752 dependents licensed under $MIT
271,684,258

Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.

published version 3.0.3, 8 months ago2604 dependents licensed under $MIT
230,269,352

Check if a path is a file, directory, or symlink

published version 6.0.0, 6 months ago1806 dependents licensed under $MIT
178,781,264

Resolve a directory that is either local, global or in the user's home directory.

published version 1.0.1, 7 years ago276 dependents licensed under $MIT
24,827,580

Returns true if a filepath exists on the file system and it's directory.

published version 0.3.1, 9 years ago666 dependents licensed under $MIT
18,073,152

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

published version 1.0.0, 8 years ago466 dependents licensed under $MIT
18,576,999

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 ago453 dependents licensed under $MIT
18,284,479

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 ago368 dependents licensed under $MIT
18,325,260

Write data to a file, replacing the file if it already exists and creating any intermediate directories if they don't already exist. Thin wrapper around node's native fs methods.

published version 2.0.0, 5 years ago563 dependents licensed under $MIT
11,911,690

Check if a path is the current working directory

published version 3.0.0, 3 years ago664 dependents licensed under $MIT
34,253,401

Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.

published version 2.0.2, 8 years ago404 dependents licensed under $MIT
26,532,139

Replaces a file extension with another one.

published version 2.0.0, 5 years ago540 dependents licensed under $MIT
17,012,600

Detects if a file exists and returns the resolved filepath.

published version 1.0.0, 7 years ago226 dependents licensed under $MIT
16,784,405

Regular expression for getting the root of a posix or windows filepath.

published version 0.1.2, 9 years ago53 dependents licensed under $MIT
16,337,645

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.

published version 2.0.0, 7 years ago122 dependents licensed under $MIT
6,393,174

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

published version 1.0.0, 8 years ago365 dependents licensed under $MIT
18,159,500

Convert Windows file paths to unix paths.

published version 1.0.0, 8 years ago137 dependents licensed under $MIT
10,417,374

Return true if a file path contains the given path.

published version 1.0.0, 8 years ago146 dependents licensed under $MIT
5,424,495

Check if a path is in the current working directory

published version 4.0.0, 4 years ago206 dependents licensed under $MIT
16,516,133