Skip to content

Instantly share code, notes, and snippets.

@jeroldhaas
Last active November 12, 2015 19:05
Show Gist options
  • Save jeroldhaas/fa831ac0a7c389ddfb54 to your computer and use it in GitHub Desktop.
Save jeroldhaas/fa831ac0a7c389ddfb54 to your computer and use it in GitHub Desktop.
Node Maintenance

Node Maintenance

Various files / command line string used for maintaining node / npm's messes.

  • flatten-packages : this will run from 3-15 minutes, depending on the number of modules
npm install -g flatten-packages
cd ~/.atom/packages
find . -type d -exec flatten-packages {} \;
@echo off
npm install -g flatten-packages
REM see http://commandwindows.com/batchfiles-iterating.htm
REM for /d %X in (*) do flatten-packages %X
REM for /d /f %X in (*) do flatten-packages %X
REM ----------
REM recursive:
cd %userhome%/.atom/packages
for /R /D %X in (*) do flatten-packages %X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment