A
A
Alexander Korotaev2015-05-20 16:56:15
JavaScript
Alexander Korotaev, 2015-05-20 16:56:15

How to clean up sludge from npm packages?

There is an nw.js application (app.nw). It's not big itself (html+js+css+img ~ 3Mb), but it uses a number of npm packages of 20-50 megabytes each. As a result, the package takes over 180Mb. Basically, these packages contain slag: documentation, pictures, tests, source scripts. If you clean it with pens, for an ambulance, then the size drops to an acceptable 5-10 megabytes.
Are there ways to automate slag cleanup? You won’t do manual cleaning every time, for every sneeze.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Shemsedinov, 2015-05-20
@MarcusAurelius

find. -name "*.txt" -type f -delete
and so with all extensions, if without a key
-delete
then first look at the list that it is and double-check whether it is necessary to bang.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question