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

Function isBareSpecifier

lib/internal/modules/esm/resolve.js:807–809  ·  view source on GitHub ↗

* Checks if a specifier is a bare specifier. * @param {string} specifier - The specifier to check. * @returns {boolean}

(specifier)

Source from the content-addressed store, hash-verified

805 * @returns {boolean}
806 */
807function isBareSpecifier(specifier) {
808 return specifier[0] && specifier[0] !== '/' && specifier[0] !== '.';
809}
810
811/**
812 * Determines whether a specifier is a relative path.

Callers 1

resolveAsCommonJSFunction · 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…