Search results

106 packages found

Extract the non-magic parent path from a glob string.

published version 6.0.2, 4 years ago2681 dependents licensed under $ISC
498,973,559

The directory used by npm for globally installed npm modules.

published version 2.0.0, 6 years ago862 dependents licensed under $MIT
74,388,197

Pollyfill for node.js `path.parse`, parses a filepath into an object.

published version 1.0.2, 7 years ago199 dependents licensed under $MIT
23,837,814

Convert a string to a valid safe filename

published version 6.0.0, 2 years ago470 dependents licensed under $MIT
20,170,106

Return true if a file path contains the given path.

published version 1.0.0, 8 years ago148 dependents licensed under $MIT
7,538,943

Node.js path.dirname() ponyfill

published version 1.0.2, 9 years ago357 dependents licensed under $MIT
28,927,577

Returns an object with the (non-glob) base path and the actual pattern.

published version 0.3.0, 10 years ago241 dependents licensed under $MIT
9,132,007

get the file directory from import.meta.url

published version 1.3.1, a year ago70 dependents licensed under $MIT
1,390,909

[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.

published version 0.1.0, 3 years ago9 dependents licensed under $MIT
860,041

Get the name of a project, from package.json, git config, or basename of the current working directory.

published version 1.0.0, 6 years ago36 dependents licensed under $MIT
141,367

Get cross-platform XDG Base Directories or their equivalents. Works with Linux, Windows (win32), or MacOS (darwin).

published version 4.0.1, 2 years ago16 dependents licensed under $MIT
36,282

A JavaScript extension package for building strong and modern applications.

published version 1.6.0, 2 months ago8 dependents licensed under $MIT
18,644

Extract the non-magic parent path from a glob string.

published version 5.1.2-patch.1, 4 years ago1 dependents licensed under $ISC
30,204

Returns an array of NPM directory paths based on the user's platform and environment.

published version 2.0.0, 6 years ago12 dependents licensed under $MIT
28,312

Fetch the current file and directory path, no matter your environment (Deno, Node.js, Web Browsers, ESM, CJS)

published version 3.4.0, a year ago17 dependents licensed under $Artistic-2.0
33,096

provides utilities for nodejs to be able to resolve es modules, such as providing the __dirname and __filename variables

published version 1.0.1, 2 years ago4 dependents licensed under $ISC
9,490

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.

published version 1.0.0, 8 years ago8 dependents licensed under $MIT
5,443

UMD __dirname and __filename browser shim

published version 1.0.0, 9 years ago6 dependents licensed under $MIT
5,929

Babel plugin that rewrites __dirname and __filename to static values

published version 1.1.0, 9 years ago6 dependents licensed under $MIT
5,578

Eslint Rules for ensure directory names and file names to be coincident.

published version 0.0.4, 4 years ago1 dependents licensed under $ISC
2,989
OSZAR »