Gathering detailed insights and metrics for cross-spawn-windows-exe
Gathering detailed insights and metrics for cross-spawn-windows-exe
Gathering detailed insights and metrics for cross-spawn-windows-exe
Gathering detailed insights and metrics for cross-spawn-windows-exe
Cross-platform support for running Windows executables via Node.js.
npm install cross-spawn-windows-exe
94.4
Supply Chain
89.1
Quality
75.3
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1 Stars
93 Commits
2 Watching
10 Branches
1 Contributors
Updated on 17 Jun 2022
Minified
Minified + Gzipped
TypeScript (95.89%)
Shell (4.11%)
Cumulative downloads
Total Downloads
Last day
-12.6%
24,592
Compared to previous day
Last week
4.4%
140,339
Compared to previous week
Last month
53.9%
612,246
Compared to previous month
Last year
27.3%
6,046,700
Compared to previous year
3
24
cross-spawn-windows-exe
Cross-platform support for running Windows executables via Node.js.
Utilizes @malept/cross-spawn-promise
(and by
extension, cross-spawn
) to execute Windows executables regardless
of platform.
For all platforms, Node.js 12.13.0 (LTS) or above is required.
On non-Windows, non-WSL host systems, the following dependencies are required:
Using the cross-spawn-windows-exe
API is similar in terms of function signature to spawn
in
@malept/cross-spawn-promise
.
1// Note: top-level await exists in Node >= 14.8.0. In earlier versions of Node, please wrap in an 2// async function. 3 4const { spawnDotNet } = require("cross-spawn-windows-exe"); 5 6await spawnDotNet("./hellodotnet.exe", ["--arg1"]);
1// Note: top-level await exists in Node >= 14.8.0. In earlier versions of Node, please wrap in an 2// async function. 3 4const { spawnExe } = require("cross-spawn-windows-exe"); 5 6await spawnExe("./hellowindows.exe", ["--arg1"]);
Executables generally can't handle UNIX-style paths that Windows Subsystem for Linux (WSL) passes
in, since it's a Linux environment. This module provides a function to convert those paths from
UNIX-style to Windows-style (via wslpath
, which should be installed by default on every WSL
distribution), if the host system is determined to be WSL. For non-WSL environments, this is a
no-op.
1// Note: top-level await exists in Node >= 14.8.0. In earlier versions of Node, please wrap in an 2// async function. 3 4const { normalizePath, spawnExe } = require("cross-spawn-windows-exe"); 5 6const normalizedPath = await normalizePath("/tmp/foo"); 7await spawnExe("./openfile.exe", ["--filename", normalizedPath]);
This module is licensed under the Apache License, version 2.0.
See LICENSE
for details.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More