MCPcopy Create free account
hub / github.com/xpf0000/FlyEnv / encodePowerShellCommand

Function encodePowerShellCommand

src/shared/PowerShellCommand.ts:1–3  ·  view source on GitHub ↗
(script: string)

Source from the content-addressed store, hash-verified

1export function encodePowerShellCommand(script: string): string {
2 return Buffer.from(script, 'utf16le').toString('base64')
3}
4
5export function powerShellInlineArgs(script: string): string[] {
6 return [

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected