MCPcopy Index your code
hub / github.com/nodejs/node / exec

Method exec

deps/npm/lib/commands/init.js:43–51  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

41 static ignoreImplicitWorkspace = false
42
43 async exec (args) {
44 // npm exec style
45 if (args.length) {
46 return await this.execCreate(args)
47 }
48
49 // no args, uses classic init-package-json boilerplate
50 await this.template()
51 }
52
53 async execWorkspaces (args) {
54 // if the root package is uninitiated, take care of it first

Callers 1

execWorkspacesMethod · 0.95

Calls 2

execCreateMethod · 0.95
templateMethod · 0.95

Tested by

no test coverage detected