line-column-path
Parse and stringify file paths with line and column like `unicorn.js:8:14`
Parse and stringify file paths with line and column like `unicorn.js:8:14`
Write a JSON file to disk, also creates intermediate directories in the destination path if they don't already exist.
Ensures that absolute file paths are always returned from a glob pattern or array of glob patterns.
Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`
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
Returns true if a filepath starts with the given string. Works with windows and posix/unix paths.
Delete files and folders and any intermediate directories if they exist (sync and async).
Attempt to resolve the absolute filepath to a file and verify that it exists.
just an object that maps `src` file extensions to `dest` file extensions as key/value pairs (e.g. `{'.less': '.css'}`). Useful for dynamically rewriting paths in tasks/plugins. pull requests welcome.
Automatically re-write the destination extension of a filepath based on the source extension. e.g `.coffee` => `.js`. This will only rename the ext, no other path parts are modified.
Check to see if a directory exists
gulp plugin to dynamically rewrite dest extensions based on src extensions.
Convert file paths to start with their base directory
Return an array of resolved filepaths for require-able local or named npm modules. Wildcard (glob) patterns may be used.
Return an object for a glob of files. Pass a `rename` function for the keys, or a `parse` function for the content, allowing it to be used for readable or require-able files.
Check if a path exists
Detect potential file system conflicts and if necessary prompt the user before overwriting files.
Recursively read directories and return a list of files, filtered to have only the files for which the (optional) filter function returns `true`. Sync and async.
A cross platform utility interface for working with filesystems in Node.js.
Regular expression for matching the parts of glob pattern.