MCPcopy Create free account
hub / github.com/adobe/react-spectrum / readWorkspaceLocations

Function readWorkspaceLocations

scripts/verdaccio-seed.js:85–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83}
84
85async function readWorkspaceLocations() {
86 const chunks = [];
87 for await (const chunk of process.stdin) {
88 chunks.push(chunk);
89 }
90 return chunks
91 .join('')
92 .trim()
93 .split('\n')
94 .filter(Boolean)
95 .map(line => JSON.parse(line))
96 .filter(ws => ws.name && ws.location && ws.location !== '.')
97 .map(ws => ws.location);
98}
99
100async function pool(items, worker, size) {
101 const results = [];

Callers 1

mainFunction · 0.85

Calls 3

pushMethod · 0.80
filterMethod · 0.65
parseMethod · 0.45

Tested by

no test coverage detected