Search results
106 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Extract the non-magic parent path from a glob string.
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
Convert a string to a valid safe filename
Return true if a file path contains the given path.
Node.js path.dirname() ponyfill
Returns an object with the (non-glob) base path and the actual pattern.
get the file directory from import.meta.url
[Node.js](https://nodejs.org) + [Gjs](https://gjs.guide/) + [Deno](https://deno.land/) module that returns the current script dirname and filename. Similar to `__dirname` and `__filename` but also works in CommonJs and ES modules.
Get the name of a project, from package.json, git config, or basename of the current working directory.
Get cross-platform XDG Base Directories or their equivalents. Works with Linux, Windows (win32), or MacOS (darwin).
A JavaScript extension package for building strong and modern applications.
- wrap
- mixin
- try
- defer
- throttle
- debounce
- queue
- channel
- worker
- parallel
- parallelism
- multithreading
- goroutine
- asyncIterator
- View more
Extract the non-magic parent path from a glob string.
Returns an array of NPM directory paths based on the user's platform and environment.
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
provides utilities for nodejs to be able to resolve es modules, such as providing the __dirname and __filename variables
Returns an array of unique "global" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globally installed npm packages. Node.js / JavaScript.
UMD __dirname and __filename browser shim
Babel plugin that rewrites __dirname and __filename to static values
Eslint Rules for ensure directory names and file names to be coincident.