Skip to content

Instantly share code, notes, and snippets.

View floribon's full-sized avatar

Florian Ribon floribon

  • Google
  • Mountain View, CA
View GitHub Profile
'use strict';
const cp = require('child_process');
function readDependencies(done) {
const compileCP = cp.spawn('npm', ['ls', '--json', '--long', '--prod']);
const errors = [];
const chunks = [];
compileCP.stderr.on('data', errors.push.bind(errors));