Search results
106 packages found
Return a regular expression to capture a Windows path dirname.
Return a regular expression to capture a path dirname.
Return a regular expression to split a POSIX filename.
Return a regular expression to split a Windows filename.
Get cross-platform XDG Base Directories or their equivalents. Works with Linux, Windows (win32), or MacOS (darwin).
Return a regular expression to split a filename.
Get root folders of git, svn, mercurial, nodejs node_modules / package.json / package-lock.json, and nodejs .jscache folder
- path
- paths
- npm
- yarn
- nodemodules
- node-modules
- package
- packages
- pasckage.json
- package-lock.json
- bin
- config
- root
- resolve
- View more
const __dirname = useDirname(import.meta.url)
A module to bring back `__dirname` and `__filename` within 2 lines of code.
dirname for module (import/export)
get import.meta.url for commonJS
Get all directories contained in a string file path
Return a directory name.
Recursively extract/find/search non-glob (real/file/base) path from/in glob pattern or array of glob patterns using `is-glob`.
A metalsmith plugin that adds file path values to metadata
ESM replacements for __dirname and __filename.
A gulp plugin that allows you to edit Vinyl files directly.
Get a path in the __dirname
Get the name of a project, from package.json, git config, or basename of the current working directory.