MCPcopy
hub / github.com/FredKSchott/snowpack / isRemoteModule

Function isRemoteModule

plugins/plugin-optimize/util.js:18–24  ·  view source on GitHub ↗

determine if remote package or not

(specifier)

Source from the content-addressed store, hash-verified

16
17/** determine if remote package or not */
18function isRemoteModule(specifier) {
19 return (
20 specifier.startsWith('//') ||
21 specifier.startsWith('http://') ||
22 specifier.startsWith('https://')
23 );
24}
25exports.isRemoteModule = isRemoteModule;
26
27/** URL relative */

Callers 3

formatFunction · 0.85
scanJSFunction · 0.85
scanHTMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected