LinuxCommandLibrary

npm-explore

opens a subshell in a package directory

TLDR

Explore package directory
$ npm explore [package-name]
copy
Run command in package
$ npm explore [package-name] -- [ls]
copy
Explore and run script
$ npm explore [package-name] -- npm run build
copy

SYNOPSIS

npm explore package [-- command]

DESCRIPTION

npm explore opens a subshell in a package directory. Allows inspection of installed packages.
The command changes to node_modules/package. Can run commands within package.

PARAMETERS

PACKAGE

Package to explore.
COMMAND
Command to run in package dir.
--help
Display help information.

CAVEATS

Opens subshell. Exit to return. Use carefully with commands.

HISTORY

npm explore provides direct access to installed package directories for debugging.

SEE ALSO

npm(1), npm-ls(1), npm-edit(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard