Search results
178 packages found
Check if a path exists
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
Check if a path is a file, directory, or symlink
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.
easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.
- url
- string
- matching
- pattern
- routing
- route
- regex
- match
- segment
- parsing
- parser
- parse
- combinator
- combinators
- View more
easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.
- url
- string
- matching
- pattern
- routing
- route
- regex
- match
- segment
- parsing
- parser
- parse
- combinator
- combinators
- View more
Replaces a file extension with another one.
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`.
Returns `true` if the path appears to be relative.
Convert a string to a valid safe filename
Returns true if a filepath is a windows UNC file path.
Convert a dependency path into a filepath
Pollyfill for node.js `path.parse`, parses a filepath into an object.
- absolute
- basename
- dir
- directory
- dirname
- ext
- extension
- extname
- file
- filename
- filepath
- is-absolute
- name
- object
- View more
Returns true if a file path does not contain any invalid characters.
Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.
Check to see if a directory exists
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.
- async
- file path
- file system
- file
- filepath
- files
- filesystem
- folder
- fs
- fs.writeFile
- fs.writeFileSync
- path
- promise
- streams
- View more
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.
Check if a path is the current working directory
Convert Windows file paths to unix paths.