MCPcopy
hub / github.com/npmx-dev/npmx.dev / get

Function get

app/composables/usePackageSelection.ts:9–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 // Parse URL param into array of package names
8 const selectedPackages = computed<string[]>({
9 get() {
10 const raw = selectedPackagesParam.value
11 if (!raw) return []
12 return raw
13 .split(',')
14 .map(p => p.trim())
15 .filter(Boolean)
16 .slice(0, MAX_PACKAGE_SELECTION)
17 },
18 set(pkgs: string[]) {
19 // Ensure all items are strings before joining
20 const validPkgs = (Array.isArray(pkgs) ? pkgs : []).map(p => p.trim()).filter(Boolean)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected