MCPcopy Create free account
hub / github.com/ReactiveX/rxjs / npmViewResult

Function npmViewResult

scripts/release/beta.mjs:204–210  ·  view source on GitHub ↗
(specifier, field, { cache, command, root })

Source from the content-addressed store, hash-verified

202}
203
204function npmViewResult(specifier, field, { cache, command, root }) {
205 return command('npm', ['view', specifier, field, '--json', ...(cache ? ['--cache', cache] : [])], {
206 cwd: root,
207 encoding: 'utf8',
208 allowFailure: true,
209 });
210}
211
212function parseNpmView(stdout) {
213 const value = JSON.parse(stdout);

Callers 2

registryIntegrityFunction · 0.85
npmViewFunction · 0.85

Calls 1

commandFunction · 0.85

Tested by

no test coverage detected