Search results
178 packages found
A toolkit for simplifying working with paths and files.
Match filepath is validated, or exclude filepath that don't need.
Detects if a file exists and returns the resolved filepath.
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.
Regular expression for getting the root of a posix or windows filepath.
Returns true if a windows file path has invalid characters.
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Class wrapper for interacting with file paths.
Resolve a directory that is either local, global or in the user's home directory.
Checks if provided string looks like a valid path
Write data to a file
- asyncfile
- systemfile
- filepath
- files
- filesystem
- folder
- fs
- fs.writeFile
- fs.writeFileSync
- path
- promise
- write
- writefile
- file-write
Returns true if a filepath exists on the file system and it's directory.
Convert a string to be able to use as a filename with Japanese characters.
Get the existing part of a given path, asynchronously
Convert a dependency path into a filepath
Transform relative path or glob pattern to absolute
Finds the absolute filepath to the original sourcecode of any defined value
Regular expression for matching file names, with or without extension.
Check if a path is in the current working directory
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