Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/npm/cli
/ globify
Function
globify
lib/utils/get-workspaces.js:7–7 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
6
// minimatch wants forward slashes only for glob patterns
7
const
globify = pattern => pattern.split(
'\\'
).join(
'/'
)
8
9
// Returns an Map of paths to workspaces indexed by workspace name
10
// { foo => '/path/to/foo' }
Callers
1
getWorkspaces
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected