Search results
179 packages found
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.
Check if a path is a file, directory, or symlink
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 exists
Convert a dependency path into a filepath
Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.
Returns `true` if the path appears to be relative.
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 a filepath is a windows UNC file path.
Replaces a file extension with another one.
Convert Windows file paths to unix paths.
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
Convert a string to a valid safe filename
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
Change the file extension of a path
Open files in your editor at a specific line and column
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.
Resolve a directory that is either local, global or in the user's home directory.
Check if a path is the current working directory
Remove leading directory components from a path, like tar's --strip-components option