MCPcopy Index your code
hub / github.com/nodejs/node / hasPackageMap

Function hasPackageMap

lib/internal/modules/package_map.js:288–290  ·  view source on GitHub ↗

* Check if the package map is enabled. * @returns {boolean}

()

Source from the content-addressed store, hash-verified

286 * @returns {boolean}
287 */
288function hasPackageMap() {
289 return !!getPackageMapPath();
290}
291
292/**
293 * Resolve a package specifier using the package map.

Callers 2

packageResolveFunction · 0.85
tryPackageMapResolveCJSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…