1#!/usr/bin/env node
L2: import{createRequire as bo}from"node:module";var xo=Object.create;var{getPrototypeOf:vo,defineProperty:vK,getOwnPropertyNames:ko}=Object;var uo=Object.prototype.hasOwnProperty;var ...
L3: `)}displayWidth(D){return KP(D).length}styleTitle(D){return D}styleUsage(D){return D.split(" ").map((F)=>{if(F==="[options]")return this.styleOptionText(F);if(F==="[command]")retur...
...
L13: (Did you mean one of ${B.join(", ")}?)`;if(B.length===1)return`
L14: (Did you mean ${B[0]}?)`;return""}Ir.suggestSimilar=Vr});var OP=YD((Tr)=>{var Lr=a("node:events").EventEmitter,mK=a("node:child_process"),TF=a("node:path"),tQ=a("node:fs"),u0=a("no...
L15: - specify the name in Command constructor or using .name()`);if(F=F||{},F.isDefault)this._defaultCommandName=D._name;if(F.noHelp||F.hidden)D._hidden=!0;return this._registerCommand...
...
L28: `);let B;while((B=tr.exec($))!=null){let U=B[1],J=B[2]||"";J=J.trim();let X=J[0];if(J=J.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),X==='"')J=J.replace(/\\n/g,`
L29: `),J=J.replace(/\\r/g,"\r");F[U]=J}return F}function er(D){D=D||{};let F=hP(D);D.path=F;let $=h6.configDotenv(D);if(!$.parsed){let X=Error(`MISSING_DATA: Cannot parse ${F} for an
CriticalGlobal Object Hijack Exfiltration
Source reassigns a global/builtin to a Proxy that forwards intercepted runtime data to an external endpoint.
dist/cli.jsView on unpkg · L1 20Trigger-reachable chain: manifest.bin -> dist/cli.js
L20: - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
L21: - ${B}`;throw Error(U)}_executeSubCommand(D,F){F=F.slice();let $=!1,B=[".js",".ts",".tsx",".mjs",".cjs"];function U(Z,z){let E=TF.resolve(Z,z);if(tQ.existsSync(E))return E;if(B.inc...
L22: `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
...
L24: `),this.outputHelp({error:!0});let $=F||{},B=$.exitCode||1,U=$.code||"commander.error";this._exit(B,U,D)}_parseOptionsEnv(){this.options.forEach((D)=>{if(D.envVar&&D.envVar in u0.e...
L25: `),this._exit(0,"commander.version",D)}),this}description(D,F){if(D===void 0&&F===void 0)return this._description;if(this._description=D,F)this._argsDescription=F;return this}summa...
L26: Expecting one of '${$.join("', '")}'`);let B=`${D}Help`;return this.on(B,(U)=>{let J;if(typeof F==="function")J=F({error:U.error,command:U.command});else J=F;if(J)U.write(`${J}
...
L34: `)}get width(){return this.toString().split(`
L35: `)[0].length}}kL.reset=()=>kF.reset();function vL(D,F,$){let B=[];…
CriticalTrigger Reachable Dangerous Capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/cli.jsView on unpkg · L20 13(Did you mean one of ${B.join(", ")}?)`;if(B.length===1)return`
L14: (Did you mean ${B[0]}?)`;return""}Ir.suggestSimilar=Vr});var OP=YD((Tr)=>{var Lr=a("node:events").EventEmitter,mK=a("node:child_process"),TF=a("node:path"),tQ=a("node:fs"),u0=a("no...
L15: - specify the name in Command constructor or using .name()`);if(F=F||{},F.isDefault)this._defaultCommandName=D._name;if(F.noHelp||F.hidden)D._hidden=!0;return this._registerCommand...
20- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
L21: - ${B}`;throw Error(U)}_executeSubCommand(D,F){F=F.slice();let $=!1,B=[".js",".ts",".tsx",".mjs",".cjs"];function U(Z,z){let E=TF.resolve(Z,z);if(tQ.existsSync(E))return E;if(B.inc...
L22: `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
...
L28: `);let B;while((B=tr.exec($))!=null){let U=B[1],J=B[2]||"";J=J.trim();let X=J[0];if(J=J.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),X==='"')J=J.replace(/\\n/g,`
L29: `),J=J.replace(/\\r/g,"\r");F[U]=J}return F}function er(D){D=D||{};let F=hP(D);D.path=F;let $=h6.configDotenv(D);if(!$.parsed){let X=Error(`MISSING_DATA: Cannot parse ${F} for an u...
L30: `).reduce(function(U,J){return Hj(J)>U?Hj(J):U},0)}function QX(D,F){return Array(F+1).join(D)}function $0D(D,F,$,B){let U=d1(D);if(F+1>=U){let J=F-U;switch(B){case"right":{D=QX($,J...
...
L34: `)}get width(){return this.toString().split(`
L35: `)[0].length}}kL.reset=()=>kF.reset();function vL(D,F,$){let B=[];D.forEach(function(J){B.push(J.draw(F))});let U=B.join("");if(U.length)$.pu
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/cli.jsView on unpkg · L20 20- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
L21: - ${B}`;throw Error(U)}_executeSubCommand(D,F){F=F.slice();let $=!1,B=[".js",".ts",".tsx",".mjs",".cjs"];function U(Z,z){let E=TF.resolve(Z,z);if(tQ.existsSync(E))return E;if(B.inc...
L22: `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
...
L24: `),this.outputHelp({error:!0});let $=F||{},B=$.exitCode||1,U=$.code||"commander.error";this._exit(B,U,D)}_parseOptionsEnv(){this.options.forEach((D)=>{if(D.envVar&&D.envVar in u0.e...
L25: `),this._exit(0,"commander.version",D)}),this}description(D,F){if(D===void 0&&F===void 0)return this._description;if(this._description=D,F)this._argsDescription=F;return this}summa...
L26: Expecting one of '${$.join("', '")}'`);let B=`${D}Help`;return this.on(B,(U)=>{let J;if(typeof F==="function")J=F({error:U.error,command:U.command});else J=F;if(J)U.write(`${J}
...
L34: `)}get width(){return this.toString().split(`
L35: `)[0].length}}kL.reset=()=>kF.reset();function vL(D,F,$){let B=[];D.forEach(function(J){B.push(J.draw(F))});let U=B.join
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/cli.jsView on unpkg · L20 84`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON...
L85: GFS4: `),console.error(N)};if(!$[Y]){if(q=global[Y]||[],z($,q),$.close=function(N){function C(_,R){return N.call($,_,function(v){if(!v)A();if(typeof R==="function")R.apply(this,arg...
L86:
HighObfuscated Payload Loader
Source contains an obfuscator-style string-array loader that reconstructs and executes hidden code.
dist/cli.jsView on unpkg · L84 31`);let U=$?Z0D:H0D;for(let J=0;J<F.length;J++)B.push.apply(B,U(D,F[J]));return B}function E0D(D){let F={},$=[];for(let B=0;B<D.length;B++){let U=B0D(F,D[B]);F=U0D(U);let J=Object.a...
L32: `)!=-1,B=this._styles,U=B.length;while(U--){var J=r$[B[U]];if(F=J.open+F.replace(J.closeRe,J.open)+J.close,$)F=F.replace(M0D,function(X){return J.close+X+J.open})}return F}A0.setTh...
L33: `))}wrapLines(D){let F=z8.colorizeLines(D);if(this.href)return F.map(($)=>z8.hyperlink(this.href,$));return F}init(D){let F=this.x,$=this.y;this.widths=D.colWidths.slice(F,F+this.c...
MediumDynamic Require
Package source references dynamic require/import behavior.
dist/cli.jsView on unpkg · L31 290`))F.push(ZJ+q.trim());F.push("")}return F.push(""),F.join(`
L291: `)}var k$=(D)=>{return e6(D.toLocaleUpperCase())},sQ=(D)=>{let F=D.registeredArguments.map((J)=>J.required?oK(J.name()):rK(J.name())).filter((J)=>J!=="").join(" "),$=HJ([HJ([D.pare...
L292: `)}var C5=(D)=>(F,$,B,U)=>{let J=B?Object.assign(B,{async:!1}):{async:!1},X=F._zod.run({value:$,issues:[]},J);if(X instanceof Promise)throw new v1;if(X.issues.length){let Y=new(U?....
LowEval
Package source references a known benign dynamic code generation pattern.
dist/cli.jsView on unpkg · L290