Showing 1-20 of 847,739 packages
Check if a file path is a binary file
Convert a file: URI to a file path
Check if a file path is a text file
Get a random temporary file path
Returns true if a filepath is a windows UNC file path.
Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.
Returns true if a windows file path has invalid characters.
Create a revved file path
Return true if a file path contains the given path.
Transform GLOB patterns to JavaScript regular expressions for fast file path matching.
Returns true if a file path does not contain any invalid characters.
Convert a file path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`
Convert a file path to a vinyl file.
Check if a file path is an image
Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.
Get the name of a dependency from a module file path.
Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.
Resolve a file path from a base filename
Resolve an absolute file path from local directories, local node_modules or global node_modules.
Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.