Search results
104 packages found
Extract the non-magic parent path from a glob string.
get the file directory from import.meta.url
Convert a string to a valid safe filename
The directory used by npm for globally installed npm modules.
Pollyfill for node.js `path.parse`, parses a filepath into an object.
- absolute
- basename
- dir
- directory
- dirname
- ext
- extension
- extname
- file
- filename
- filepath
- is-absolute
- name
- object
- View more
A tiny isomorphic ESM alternative to Node's __dirname global.
Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)
- __dirname
- __filename
- commonjs
- deno
- deno-edition
- deno-entry
- denoland
- directory
- dirname
- ecmascript
- es2022
- es5
- esm
- export-default
- View more
make ESM a bit more commonJS
Node.js path.dirname() ponyfill
Locate files or folders in the directory where Node was started
Convert a string to be able to use as a filename with Japanese characters.
Locate files or folders in the directory where Node was started
Useful additions to inbuilt path module.
- extra
- path
- basename
- delimiter
- dirname
- extname
- format
- isAbsolute
- join
- normalize
- parse
- posix
- relative
- resolve
- View more
Extract the non-magic parent path from a glob string. This version contains a fix for capacitor.
Useful additions to inbuilt path module {web}.
- extra
- path
- basename
- delimiter
- dirname
- extname
- format
- isAbsolute
- join
- normalize
- parse
- posix
- relative
- resolve
- View more
Use file structure to namespace your code.
- action types
- babel
- babel-plugin
- ddd
- domain driven design
- module
- namespace
- namespacing
- redux
- storybook
- test
- type
- filename
- dirname
Quickly find a file in your Node directory
Convert strings to valid filenames or filepaths
Get cross-platform XDG Base Directories or their equivalents. Works with Linux, Windows (win32), or MacOS (darwin).
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