Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

prunenm

joshball14MIT1.0.2

deletes all node_module directories in a given path

readme

prunenm

recursively deletes all node_module directories in the path

Install with npm install prunenm.

API

prunenm(ctx, root_dir)

CLI

If installed with npm install prunenm -g it can be used as a global command prunenm <path> which is useful for cross platform support.