Skip to content

Support npm-init and npx commands #37

@baruchiro

Description

@baruchiro

npm-init

npm init <initializer> can be used to set up a new or existing npm package.
initializer in this case is an npm package named create-<initializer>, which will be installed by npx, and then have its main bin executed -- presumably creating or updating package.json and running any other initialization-related operations.
(from npm documentation)

npx

Executes <command> either from a local node_modules/.bin, or from a central cache, installing any packages needed in order for <command> to run.

npx will install a package, if needed, then will run its CLI.

We should support npx commands, such as here: https://stackoverflow.com/a/59189242/839513.

Note that in contrast to the regular npm command, in npx will be just one package. The other arguments will be the package's CLI arguments.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions