Search results
178 packages found
Match filepath is validated, or exclude filepath that don't need.
Detects if a file exists and returns the resolved filepath.
Convert Windows file paths to unix paths.
Regular expression for getting the root of a posix or windows 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.
Returns true if a windows file path has invalid characters.
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
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
Write data to a file
- asyncfile
- systemfile
- filepath
- files
- filesystem
- folder
- fs
- fs.writeFile
- fs.writeFileSync
- path
- promise
- write
- writefile
- file-write
Convert a dependency path into a filepath
Transform relative path or glob pattern to absolute
Regular expression for matching file names, with or without extension.
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
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
Finds the absolute filepath to the original sourcecode of any defined value