Search results
100 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.
make ESM a bit more commonJS
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
Node.js path.dirname() ponyfill
Convert a string to be able to use as a filename with Japanese characters.
Extract the non-magic parent path from a glob string. This version contains a fix for capacitor.
Locate files or folders in the directory where Node was started
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
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
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
Convert strings to valid filenames or filepaths