Search results
178 packages found
Get the basename of a JSON filepath without the file extension.
Convert file paths to start with their base directory
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Returns true if a filepath starts with the given string. Works with windows and posix/unix paths.
Remove leading directory components from a path, like tar's --strip-components option
Change the file extension of a path
Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.
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.
Test if a value is an absolute path.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- is
- is-absolute
- is-path
- path
- absolute
- filesystem
- View more
Get cross-platform XDG Base Directories or their equivalents. Works with Linux, Windows (win32), or MacOS (darwin).
Test if a value is a relative path.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- is
- is-relative
- is-path
- path
- relative
- filesystem
- View more
Convert strings to valid filenames or filepaths
enforces folder and file names to match desired case style
Test if a value is a UNC path.
Recursively read all files path from directory
Test if a value is a relative path.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- is
- is-relative
- is-path
- path
- relative
- filesystem
- View more
Get installation path where the given package is installed. Works for globally and locally installed packages
Write file to disk, using promises and creating recursively intermediate directories if they don't exist.
Test if a value is a UNC path.
Test if a value is an absolute path.
- stdlib
- stdassert
- assertion
- assert
- utilities
- utility
- utils
- util
- is
- is-absolute
- is-path
- path
- absolute
- filesystem
- View more