Skip to content

Instantly share code, notes, and snippets.

@erikzaadi
erikzaadi / outdated.js
Last active August 29, 2015 13:57 — forked from shaharke/outdated.js
#!/usr/bin/env node
var npm = require('npm');
npm.load('./package.json', function () {
npm.outdated(function (err, outdated) {
if (outdated.length > 0) {
outdated.forEach(function (p) {
console.log(p[1] + '\t' + p[2] + ' => ' + p[3]);
});
process.exit(1);