Search results

178 packages found

Check if a path exists

published 5.0.0 3 years ago
M
Q
P

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 3.0.0 6 years ago
M
Q
P

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 3.0.2 5 years ago
M
Q
P

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

published 5.0.0 3 years ago
M
Q
P

easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.

published 1.0.3 7 years ago
M
Q
P

Convert a string to a valid safe filename

published 6.0.0 a year ago
M
Q
P

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 2.0.2 7 years ago
M
Q
P

Replaces a file extension with another one.

published 2.0.0 4 years ago
M
Q
P

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

published 1.0.2 6 years ago
M
Q
P

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 1.0.0 7 years ago
M
Q
P

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

published 1.0.0 7 years ago
M
Q
P

Detects if a file exists and returns the resolved filepath.

published 1.0.0 7 years ago
M
Q
P

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

published 1.0.0 7 years ago
M
Q
P

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

published 1.0.1 7 years ago
M
Q
P

Convert a dependency path into a filepath

published 3.0.2 10 months ago
M
Q
P

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 0.1.2 8 years ago
M
Q
P

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 2.0.0 5 years ago
M
Q
P

Returns true if a file path does not contain any invalid characters.

published 0.1.1 9 years ago
M
Q
P

Check if a path is the current working directory

published 3.0.0 3 years ago
M
Q
P

Check to see if a directory exists

published 2.0.1 6 years ago
M
Q
P