Benign Download

execa.cjs

JavaScript file write operationSpawns a process synchronously
SHA-256f72312a0553cb4516b46b4fb0a7df03c87b2561b3d0111c50a96d4a0be1a657b

Evidence

Node.js child_process module import lines 1–10
1const node_buffer = require('buffer');
2const path = require('path');
3const childProcess = require('child_process');
4const process$2 = require('process');
5const url = require('url');
6const os = require('os');
7const node_fs = require('fs');
8const promises = require('timers/promises');
9const require$$0 = require('stream');
10const node_util = require('util');
Process handle unref() call lines 1051–1055
1051 // istanbul ignore else
1052 if (t.unref) {
1053 t.unref();
1054 }
1055};
Creates a write stream lines 1144–1148
1144const pipeToTarget = (spawned, streamName, target) => {
1145 if (typeof target === 'string') {
1146 spawned[streamName].pipe(node_fs.createWriteStream(target));
1147 return spawned;
1148 }
Read files (Node.js) lines 1487–1489
1487 validateInputOptions(input);
1488 return node_fs.readFileSync(inputFile);
1489};
Creates a file read stream lines 1507–1509
1507 validateInputOptions(input);
1508 return node_fs.createReadStream(inputFile);
1509};

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.