Search results
178 packages found
file path utils for the browser and node.js
🌟 An npm module that strongly types file paths! 🥊
Localized and configureable async and sync `requre.resolve()` implementation.
A convenient way for changing parts of filepath.
Lint filenames and paths
Return true if the given file paths are equal.
Open files in your editor at a specific line and column
A proxy to `path`, replacing `\` with `/` for all results
Convert directory url path to it's index file path
Create an object of template partials from a glob of files to pass to any template engine.
takes and full path to a file and remove all directories before the module. SO you get back a path relative to the module
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
Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Return `true` if a file extension matches the given string, array of strings, or RegExp pattern.
Filter files by the given extension.
Hierarchical filepath resolver
Parse and stringify file paths with line and column like `unicorn.js:8:14`