MarshallOfSound / pruner

Prune production dependencies in a package manager agnostic way
2 stars 1 forks source link

Pruner

Installation

npm i --save-dev pruner

API

Class: Walker

import { Walker } from 'pruner';

// modulePath is the root folder of your module
const walker = new Walker(modulePath);

walker.prune()

Prunes all dependencies that aren't required for production or optional dependencies.