157 packages found
Recursively read all files path from directory
filepath parses UNC (long and short and cmd aliases) local filesystem path, and unix paths, checks for invalid path characters
Convert file paths to start with their base directory
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.
Class wrapper for interacting with file paths.
Get the icon of a file or app as a PNG image (macOS)
Remove leading directory components from a path, like tar's --strip-components option
Convert a string to be able to use as a filename with Japanese characters.
Transform relative path or glob pattern to absolute
Check if a file path is a Markdown file
Returns true if a filepath starts with the given string. Works with windows and posix/unix paths.
vfile utility to make sure the directory of a file exists on the file system
fs.stat With Path Included To Callback Result
Get the very first directory name from file path `./foo/bar/baz` -> `foo` or `../a/b/c` -> `../a`. Useful when you just want first real directory from given file path
Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.
Get the existing part of a given path, asynchronously
Convert a dependency path into a filepath
Get file metadata using `mdls` on macOS
Write file to disk, using promises and creating recursively intermediate directories if they don't exist.
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.