(specifier, field, { cache, command, root })
| 202 | } |
| 203 | |
| 204 | function 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 | |
| 212 | function parseNpmView(stdout) { |
| 213 | const value = JSON.parse(stdout); |
no test coverage detected