Skip to content

Instantly share code, notes, and snippets.

@jaysalvat
jaysalvat / npm-outdated.js
Created February 17, 2017 16:03
Check NPM for outdated dependencies and output a package.json friendly JSON.
'use strict';
let exec = require('child_process').exec;
exec('npm outdated --json', (err, stdout, sdterr) => {
if (!stdout) {
process.exit();
}
let json = JSON.parse(stdout),