Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/npm/cli
/ open
Function
open
test/lib/utils/open-url.js:10–16 ·
view source on GitHub ↗
(url, options)
Source
from the content-addressed store, hash-verified
8
let
openerOpts = null
9
10
const
open =
async
(url, options) => {
11
openerUrl = url
12
openerOpts = options
13
if
(openerResult) {
14
throw openerResult
15
}
16
}
17
18
const
mock =
await
mockNpm(t, { config })
19
Callers
1
openUrl
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected