Skip to content

Instantly share code, notes, and snippets.

@jpaulin
Created July 29, 2017 16:42
Show Gist options
  • Save jpaulin/2295345ba711f1e06277283a6d24cf17 to your computer and use it in GitHub Desktop.
Save jpaulin/2295345ba711f1e06277283a6d24cf17 to your computer and use it in GitHub Desktop.
List any npm package folders, the wrong way: obviously bloated one (with 'cdu', the color du)
cdu -b ./node_modules/ | awk '{print $3}' | sed 's/\///g'
# We can do it this way. But let's not..
# Dependencies:
# 'cdu', the "color du"
# Compile it via sources.
# And hey, the -b switch used here for cdu actually counteracts the tool's
# main powers of existence, because -b means "do it black-and-white"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment