Skip to content

Instantly share code, notes, and snippets.

View liamkeily's full-sized avatar

Liam liamkeily

  • Leicester, UK
  • 06:43 (UTC)
View GitHub Profile
@liamkeily
liamkeily / compare-modules.js
Last active March 14, 2017 10:54 — forked from gimenete/compare-modules.js
Compare your installed node_modules with clean npm install
// mv node_modules node_modules_old && npm install
var fs = require('fs')
var path = require('path')
var node_modules = path.join(__dirname, 'node_modules')
var node_modules_old = path.join(__dirname, 'node_modules_old')
fs.readdir(node_modules, function(err, files) {
files.forEach(function(dir) {
try {