/** * @license * Copyright 2023 Google Inc. * SPDX-License-Identifier: Apache-2.0
*/
import {spawnSync, spawn} from 'child_process'; import {createReadStream} from 'fs'; import {mkdir, readdir} from 'fs/promises'; import * as path from 'path'; import {Stream} from 'stream';
import extractZip from 'extract-zip'; import tar from 'tar-fs'; import bzip from 'unbzip2-stream';
child.stdin.on('error', e => { if ('code' in e && e.code === 'EPIPE') { // finished before reading the file finished (i.e. head)
stream.emit('end');
} else {
stream.destroy(e);
}
});
child.stdout
.on('data', data => { return stream.push(data);
})
.on('error', e => { return stream.destroy(e);
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.