12 packages found
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.
- View more
Detects if a file exists and returns the resolved filepath.
Remove leading directory components from a path, like tar's --strip-components option
vfile utility to create a vfile from a filepath
Read file or directory into vfile.
file path utils for the browser and node.js
Filter files by the given extension.
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 small module that helps extract the path of a certain route in hyper-express.
File paths library. All you need to work with paths. Tiny drop-in replacement for 'path'. Works in Node, Browser, and Deno.
Resolves path to a file in a Node Js when we require a file.
Functions for fantastically fast file filtering, and more things that start with 'f'.