MCPcopy Index your code
hub / github.com/tinyhttp/tinyhttp / install

Function install

packages/cli/src/utils.ts:13–14  ·  view source on GitHub ↗
(pkg: string, pkgs: string[], dev = true)

Source from the content-addressed store, hash-verified

11export const runCmd = promisify(exec)
12
13export const install = async (pkg: string, pkgs: string[], dev = true) =>
14 await runCmd(`${pkg} ${pkg === 'yarn' ? 'add' : 'i'} ${dev ? '-D' : '-S'} ${pkgs.join(' ')}`)
15
16const httpHeaders = {
17 headers: { 'user-agent': 'node.js' }

Callers 3

setupPrettierFunction · 0.90
index.tsFile · 0.90
setupEslintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected