This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gawk 'BEGIN{pdt=0;} { split($0, c, ";");split(c[1], t, ".");gsub(/[-T:]/, " ", t[1]);gsub(/Z/, "", t[2]); ns=sprintf("0.%s", t[2]); dt=(mktime(t[1])+ns)*1000; printf("%s;%.2fms\n", $0, (dt - pdt)); pdt=dt; }' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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)); |