Starve
Clean and remove unnecessary files and folders from node_modules
Why
The industry is moving towards serverless architecure, where the size of your package is very important for performance. This tool makes your lambda functions' packages significantly smaller.
What
starve
is a very simple tool to remove unnecessary files and folders
from node_modules
, such as markdown, typescript source files, licenses etc.
Using
npx starve
How we decide what files to remove
We are running this command periodically to see unique file extension in
node_modules
, try removing unnecessary files and test each attempt.
find node_modules -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u