Get the npm global path prefix. Same code used internally by npm.
☆29Aug 17, 2024Updated last year
Alternatives and similar repositories for global-prefix
Users that are interested in global-prefix are comparing it to the libraries listed below
Sorting:
- Uses a breadth-first search, when necessary, to resolve the file path using the correct casing, and verify that the file actually exists.…☆12Sep 1, 2017Updated 8 years ago
- Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.☆24Mar 16, 2022Updated 3 years ago
- Like `extend` but only copies missing properties/values to the target object.☆17Apr 26, 2017Updated 8 years ago
- Create an object path (dot notation) from a list or array of strings.☆16Dec 31, 2020Updated 5 years ago
- Map `visit` over an array of objects.☆17Jun 27, 2022Updated 3 years ago
- Return true if a file path contains the given path.☆17May 18, 2021Updated 4 years ago
- Create nested getter properties and any intermediary dot notation (`'a.b.c'`) paths☆13Jun 18, 2021Updated 4 years ago
- Create ansi colors by passing open and close codes.☆19Apr 12, 2024Updated last year
- A cache for managing namespaced sub-caches☆14Sep 4, 2021Updated 4 years ago
- Wrap a Readable stream in a Transform stream.☆10Apr 6, 2023Updated 2 years ago
- Extend object A with the properties of object B. node.js/javascript util.☆33Aug 7, 2021Updated 4 years ago
- Define a non-enumerable property on an object.☆21Mar 14, 2023Updated 2 years ago
- Add/write sourcemaps to/from Vinyl files.☆16Apr 6, 2023Updated 2 years ago
- Error handling for vinyl plugins. Just an abstraction of what's in gulp-util with minor reformatting.☆19Dec 6, 2022Updated 3 years ago
- Returns true if a value has the characteristics of a valid JavaScript data descriptor.☆21Dec 30, 2025Updated 2 months ago
- Resolve a directory that is either local, global or in the user's home directory.☆14Aug 5, 2017Updated 8 years ago
- Node.js path.dirname() ponyfill☆13Nov 13, 2021Updated 4 years ago
- Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.☆15Dec 30, 2025Updated 2 months ago
- Find a file given a declaration of locations.☆12Mar 19, 2022Updated 3 years ago
- Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.☆18Nov 21, 2022Updated 3 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Dec 15, 2018Updated 7 years ago
- Returns true if a filepath is absolute. The original path-is-absolute.☆22Jul 13, 2017Updated 8 years ago
- Visit a method over the items in an object, or map visit over the objects in an array. This is an alternative approach to using extend or…☆20Dec 15, 2020Updated 5 years ago
- Returns true if a string has an extglob☆23May 25, 2019Updated 6 years ago
- A tool for respawning node binaries when special flags are present.☆21Dec 30, 2025Updated 2 months ago
- Copy static properties, prototype properties, and descriptors from one object to another☆15Dec 16, 2020Updated 5 years ago
- Answers the question: "can this value have keys?". Returns true if a value is any of the object types: array, regexp, plain object, funct…☆19Aug 20, 2021Updated 4 years ago
- Utilities for the snapdragon parser/compiler.☆18Aug 12, 2020Updated 5 years ago
- Call the given method on each value in the given object.☆20Mar 14, 2023Updated 2 years ago
- Utils for working with JavaScript classes and prototype methods.☆19Mar 14, 2023Updated 2 years ago
- Sink your streams.☆17Apr 15, 2023Updated 2 years ago
- Detects the casing of the input string (camelcase, lowercase, snakecase, kebabcase, snakecase, uppercase etc).☆18Jan 27, 2025Updated last year
- Basic cache object for storing key-value pairs. Based on MapCache in Lo-dash 3.0☆20May 10, 2016Updated 9 years ago
- Scaffold out a Generate generator project.☆11Aug 30, 2016Updated 9 years ago
- Faster, node.js focused alternative to JavaScript's native array map.☆14Feb 28, 2017Updated 9 years ago
- Get the list of npm modules that depend on the specified npm module.☆15Dec 27, 2017Updated 8 years ago
- Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or…☆12Sep 1, 2017Updated 8 years ago
- Gulp plugin that prompts you to choose the files pass through the stream.☆10Apr 29, 2017Updated 8 years ago
- Filter an object to have only the `own` properties for which a `callback` function returns true.☆15Oct 27, 2018Updated 7 years ago