Search results
179 packages found
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
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
Test if a value is a UNC path.
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.
Get the icon of a file or app as a PNG image (macOS)
Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)
Resolves a given package if it is installed locally, then tries to resolve it from global registry, using battle-tested [global-modules][] package. Better approach than internal `require.resolve`, so you can trust. You just get absolute filepath to some p
Delete files and folders and any intermediate directories if they exist (sync and async).
Returns true if a filepath starts with the given string. Works with windows and posix/unix paths.
Write a JSON file to disk, also creates intermediate directories in the destination path if they don't already exist.
- async
- buffer
- data
- file
- file-system
- filepath
- files
- filesystem
- folder
- format
- fs
- fs.createWriteStream
- fs.writeFile
- fs.writeFileSync
- View more
Get cross-platform XDG Base Directories or their equivalents. Works with Linux, Windows (win32), or MacOS (darwin).
Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Ensures that absolute file paths are always returned from a glob pattern or array of glob patterns.
Parse a directory and generate it's structure tree.
- dir-parser
- directory-parser
- dir-tree
- directory-tree
- dir-info
- parse-dir
- parse-directory
- tree
- dir
- directory
- file
- files
- parse
- parser
- View more
Check if a path is a file, directory, or symlink
Checks if provided string looks like a valid path
Check to see if a directory exists
Parse and stringify file paths with line and column like `unicorn.js:8:14`
Cross-platform file path sorting. Sort an array of path strings or objects containing path strings.
- sort
- sorting
- path
- paths
- file
- files
- filepath
- dir
- directory
- directories
- folder
- subdirectory
- relative
- absolute
- View more