Back to Explore

sindresorhus/powershell-utils

GitHub
1 updates · last 90 days2 watchersOpen source

Last release:

powershell-utils provides Node.js helpers for running PowerShell commands on Windows. It includes functions to get the PowerShell executable path, check whether PowerShell is accessible, execute commands (async or sync), and build or encode safe PowerShell arguments (for use with child_process).

Project status

  • Actively maintained, with the most recent update on 2026-08-29 and a follow-on update released 9 seconds later (v0.2.1), indicating responsive development.
  • Apparent cadence is healthy, showing updates in the past year (v0.1.0 in 2025-11, v0.2.0 in 2026-01, and v0.2.1 in 2026-08), with the latest push occurring less than two weeks before today (2026-09-03).

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v0.2.1

    v0.2.1 updates `escapeArgument` to correctly escape PowerShell typographic single quotes so they cannot terminate strings and inject statements. In addition, it hardens command execution by preventing `shell` usage in `execFile` options (both in types and at runtime) to reduce shell injection risk.

    Security
  • v0.2.0

    v0.2.0 adds synchronous PowerShell execution via a new executePowerShellSync export. The implementation also refactors argument construction and introduces a new helper, executePowerShell.createArguments, to build the full PowerShell argument array.

    Features
  • v0.1.0

    Release v0.1.0 was published on 2025-11-15. The provided release notes contain only a placeholder emoji and do not describe any features, fixes, or changes, so there is no actionable information to assess developer impact.