npm-recurser

1.0.1 • Public • Published

npm-recurser

Recursively run npm in folders

Takes the current working directory and checks for package.json recursively in every folder and runs npm with a given command for it.

Usage

Just use the npm command and arguments you wish to execute!

npm-recurser <npm-command> <npm-arguments>

Examples of common commands:

npx npm-recurser install <package-name>
npx npm-recurser audit
npx npm-recurser prune

Additional Arguments

The script supports additional arguments preceding the npm command:

npm-recurser <argument> <npm-command> <npm-arguments>

--skipRoot

Use this argument to prevent execution of npm in the root folder.
Example:

npm-recurser --skipRoot update

Credits

This is a fixed and updated version of npm-recursive. Credits go to its original author!

Readme

Keywords

Package Sidebar

Install

npm i npm-recurser

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

12.5 kB

Total Files

6

Last publish

Collaborators

  • w00zla