filename-regex
Regular expression for matching file names, with or without extension.
Regular expression for matching file names, with or without extension.
Regular expression for getting the root of a posix or windows filepath.
Pollyfill for node.js `path.parse`, parses a filepath into an object.
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Convert Windows file paths to unix paths.
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.
Returns true if a windows file path has invalid characters.
Returns true if a file path does not contain any invalid characters.
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Wrapper for [braces] to enable brace expansion for arrays of patterns.
Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)
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.
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.
Convert a dependency path into a filepath
Match filepath is validated, or exclude filepath that don't need.
Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.
easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.
Get installation path where the given package is installed. Works for globally and locally installed packages
Get the basename of a filepath excluding extension.
Open files in your editor at a specific line and column