$ gnpm install pruner
npm i --save-dev pruner
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.
Copyright 2013 - present © cnpmjs.org | Home |