{"_id":"cross-spawn-windows-exe","_rev":"3372953","name":"cross-spawn-windows-exe","description":"Cross-platform support for running Windows executables","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"malept","email":"nodejs+npm@lazymalevolence.com"}],"time":{"modified":"2026-03-29T21:28:49.000Z","created":"2020-12-05T03:09:43.958Z","0.1.0":"2020-12-05T03:09:43.958Z","1.2.0":"2021-07-16T08:10:49.708Z","1.1.0":"2021-07-03T18:12:39.256Z","1.0.0":"2020-12-10T18:54:08.423Z"},"users":{},"author":{"name":"Mark Lee"},"repository":{"type":"git","url":"git+https://github.com/malept/cross-spawn-windows-exe.git"},"versions":{"0.1.0":{"name":"cross-spawn-windows-exe","version":"0.1.0","description":"Cross-platform support for running Windows executables","main":"dist/src/index.js","repository":{"type":"git","url":"git+https://github.com/malept/cross-spawn-windows-exe.git"},"bugs":{"url":"https://github.com/malept/cross-spawn-windows-exe/issues"},"homepage":"https://github.com/malept/cross-spawn-windows-exe#readme","keywords":["cross-platform","spawn","windows","exe"],"author":{"name":"Mark Lee"},"license":"Apache-2.0","engines":{"node":">= 10"},"scripts":{"ava":"ava","build":"tsc","coverage":"nyc --reporter=lcov --reporter=text ava","docs":"typedoc src/index.ts","lint":"prettier --check . && eslint --ext .ts .","prepare":"npm run build","test":"yarn lint && yarn ava"},"dependencies":{"@malept/cross-spawn-promise":"^1.1.0","is-wsl":"^2.2.0","which":"^2.0.2"},"devDependencies":{"@istanbuljs/nyc-config-typescript":"^1.0.1","@types/node":"^14.11.2","@types/sinon":"^9.0.4","@types/which":"^1.3.2","@typescript-eslint/eslint-plugin":"^4.3.0","@typescript-eslint/parser":"^4.3.0","ava":"^3.9.0","eslint":"^7.3.0","eslint-config-prettier":"^6.11.0","eslint-plugin-ava":"^11.0.0","eslint-plugin-import":"^2.21.2","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.2.1","eslint-plugin-tsdoc":"^0.2.5","husky":"^4.2.5","lint-staged":"^10.2.11","nyc":"^15.1.0","prettier":"^2.0.5","sinon":"^9.0.2","source-map-support":"^0.5.19","ts-node":"^9.0.0","typedoc":"^0.20.0-beta.24","typescript":"^4.0.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"timeout":"3m"},"eslintConfig":{"parser":"@typescript-eslint/parser","parserOptions":{"ecmaVersion":"2018","sourceType":"module"},"plugins":["@typescript-eslint","eslint-plugin-tsdoc"],"extends":["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:ava/recommended","plugin:import/errors","plugin:import/warnings","plugin:import/typescript","plugin:node/recommended","plugin:prettier/recommended","plugin:promise/recommended","prettier","prettier/@typescript-eslint"],"rules":{"node/no-unsupported-features/es-syntax":["error",{"ignores":["modules"]}],"strict":"error","tsdoc/syntax":"warn"},"overrides":[{"files":"test/*.ts","rules":{"import/no-named-as-default-member":"off"}}],"settings":{"node":{"tryExtensions":[".js",".json",".node",".ts"]}}},"eslintIgnore":["dist"],"funding":[{"type":"individual","url":"https://github.com/sponsors/malept"},{"type":"tidelift","url":"https://tidelift.com/subscription/pkg/npm-cross-spawn-windows-exe?utm_medium=referral&utm_source=npm_fund"}],"husky":{"pre-commit":"lint-staged"},"lint-staged":{"*.{json,md,yml}":"prettier --write","*.ts":["prettier --write","eslint --fix"]},"nyc":{"extends":"@istanbuljs/nyc-config-typescript"},"gitHead":"70fd6e6af57e77b2d07c629cc0048ce2f31ffc41","_id":"cross-spawn-windows-exe@0.1.0","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"shasum":"98bac28d70f678c6d3936109c58f5a0883aa70da","size":10825,"noattachment":false,"key":"/cross-spawn-windows-exe/-/cross-spawn-windows-exe-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cross-spawn-windows-exe/download/cross-spawn-windows-exe-0.1.0.tgz"},"_npmUser":{"name":"malept","email":"nodejs.npm.nospam@lazymalevolence.com"},"directories":{},"maintainers":[{"name":"malept","email":"nodejs+npm@lazymalevolence.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-spawn-windows-exe_0.1.0_1607137783789_0.8973401708779489"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T13:11:49.479Z","publish_time":1607137783958,"_cnpm_publish_time":1607137783958},"1.2.0":{"name":"cross-spawn-windows-exe","version":"1.2.0","description":"Cross-platform support for running Windows executables","main":"dist/src/index.js","repository":{"type":"git","url":"git+https://github.com/malept/cross-spawn-windows-exe.git"},"bugs":{"url":"https://github.com/malept/cross-spawn-windows-exe/issues"},"homepage":"https://github.com/malept/cross-spawn-windows-exe#readme","keywords":["cross-platform","spawn","windows","exe"],"author":{"name":"Mark Lee"},"license":"Apache-2.0","engines":{"node":">= 10"},"scripts":{"ava":"ava","build":"tsc","coverage":"nyc --reporter=lcov --reporter=text ava","docs":"typedoc src/index.ts","lint":"prettier --check . && eslint --ext .ts .","prepare":"npm run build && husky install","test":"yarn lint && yarn ava"},"dependencies":{"@malept/cross-spawn-promise":"^1.1.0","is-wsl":"^2.2.0","which":"^2.0.2"},"devDependencies":{"@istanbuljs/nyc-config-typescript":"^1.0.1","@types/node":"^16.0.0","@types/sinon":"^10.0.0","@types/which":"^2.0.0","@typescript-eslint/eslint-plugin":"^4.3.0","@typescript-eslint/parser":"^4.3.0","ava":"^3.9.0","eslint":"^7.3.0","eslint-config-prettier":"^8.0.0","eslint-plugin-ava":"^12.0.0","eslint-plugin-import":"^2.21.2","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^5.1.0","eslint-plugin-tsdoc":"^0.2.5","husky":"^6.0.0","lint-staged":"^11.0.0","nyc":"^15.1.0","prettier":"^2.0.5","sinon":"^11.1.0","source-map-support":"^0.5.19","ts-node":"^9.0.0","typedoc":"^0.20.0-beta.24","typescript":"~4.2.4"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"timeout":"3m"},"eslintConfig":{"parser":"@typescript-eslint/parser","parserOptions":{"ecmaVersion":"2018","sourceType":"module"},"plugins":["@typescript-eslint","eslint-plugin-tsdoc"],"extends":["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:ava/recommended","plugin:import/errors","plugin:import/warnings","plugin:import/typescript","plugin:node/recommended","plugin:prettier/recommended","plugin:promise/recommended","prettier"],"rules":{"node/no-unsupported-features/es-syntax":["error",{"ignores":["modules"]}],"strict":"error","tsdoc/syntax":"warn"},"overrides":[{"files":"test/*.ts","rules":{"import/no-named-as-default-member":"off"}}],"settings":{"node":{"tryExtensions":[".js",".json",".node",".ts"]}}},"eslintIgnore":["dist"],"funding":[{"type":"individual","url":"https://github.com/sponsors/malept"},{"type":"tidelift","url":"https://tidelift.com/subscription/pkg/npm-cross-spawn-windows-exe?utm_medium=referral&utm_source=npm_fund"}],"lint-staged":{"*.{json,md,yml}":"prettier --write","*.ts":["prettier --write","eslint --fix"]},"nyc":{"extends":"@istanbuljs/nyc-config-typescript"},"gitHead":"f05790a38e1345e54996b7489b4e66da092a9816","_id":"cross-spawn-windows-exe@1.2.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"shasum":"46253b0f497676e766faf4a7061004618b5ac5ec","size":11585,"noattachment":false,"key":"/cross-spawn-windows-exe/-/cross-spawn-windows-exe-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cross-spawn-windows-exe/download/cross-spawn-windows-exe-1.2.0.tgz"},"_npmUser":{"name":"malept","email":"nodejs.npm.nospam@lazymalevolence.com"},"directories":{},"maintainers":[{"name":"malept","email":"nodejs+npm@lazymalevolence.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-spawn-windows-exe_1.2.0_1626423049595_0.8928978062056563"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T13:11:51.243Z","publish_time":1626423049708,"_cnpm_publish_time":1626423049708},"1.1.0":{"name":"cross-spawn-windows-exe","version":"1.1.0","description":"Cross-platform support for running Windows executables","main":"dist/src/index.js","repository":{"type":"git","url":"git+https://github.com/malept/cross-spawn-windows-exe.git"},"bugs":{"url":"https://github.com/malept/cross-spawn-windows-exe/issues"},"homepage":"https://github.com/malept/cross-spawn-windows-exe#readme","keywords":["cross-platform","spawn","windows","exe"],"author":{"name":"Mark Lee"},"license":"Apache-2.0","engines":{"node":">= 10"},"scripts":{"ava":"ava","build":"tsc","coverage":"nyc --reporter=lcov --reporter=text ava","docs":"typedoc src/index.ts","lint":"prettier --check . && eslint --ext .ts .","prepare":"npm run build && husky install","test":"yarn lint && yarn ava"},"dependencies":{"@malept/cross-spawn-promise":"^1.1.0","is-wsl":"^2.2.0","which":"^2.0.2"},"devDependencies":{"@istanbuljs/nyc-config-typescript":"^1.0.1","@types/node":"^15.0.3","@types/sinon":"^10.0.0","@types/which":"^2.0.0","@typescript-eslint/eslint-plugin":"^4.3.0","@typescript-eslint/parser":"^4.3.0","ava":"^3.9.0","eslint":"^7.3.0","eslint-config-prettier":"^8.0.0","eslint-plugin-ava":"^12.0.0","eslint-plugin-import":"^2.21.2","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^5.1.0","eslint-plugin-tsdoc":"^0.2.5","husky":"^6.0.0","lint-staged":"^11.0.0","nyc":"^15.1.0","prettier":"^2.0.5","sinon":"^11.1.0","source-map-support":"^0.5.19","ts-node":"^9.0.0","typedoc":"^0.20.0-beta.24","typescript":"^4.0.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"timeout":"3m"},"eslintConfig":{"parser":"@typescript-eslint/parser","parserOptions":{"ecmaVersion":"2018","sourceType":"module"},"plugins":["@typescript-eslint","eslint-plugin-tsdoc"],"extends":["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:ava/recommended","plugin:import/errors","plugin:import/warnings","plugin:import/typescript","plugin:node/recommended","plugin:prettier/recommended","plugin:promise/recommended","prettier"],"rules":{"node/no-unsupported-features/es-syntax":["error",{"ignores":["modules"]}],"strict":"error","tsdoc/syntax":"warn"},"overrides":[{"files":"test/*.ts","rules":{"import/no-named-as-default-member":"off"}}],"settings":{"node":{"tryExtensions":[".js",".json",".node",".ts"]}}},"eslintIgnore":["dist"],"funding":[{"type":"individual","url":"https://github.com/sponsors/malept"},{"type":"tidelift","url":"https://tidelift.com/subscription/pkg/npm-cross-spawn-windows-exe?utm_medium=referral&utm_source=npm_fund"}],"lint-staged":{"*.{json,md,yml}":"prettier --write","*.ts":["prettier --write","eslint --fix"]},"nyc":{"extends":"@istanbuljs/nyc-config-typescript"},"gitHead":"759a4f8620eb9f8101b46bc9b03f8ebe2e8e4d14","_id":"cross-spawn-windows-exe@1.1.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"shasum":"823e7cb25cbe911ba5e2843b3de98edd923e909b","size":11181,"noattachment":false,"key":"/cross-spawn-windows-exe/-/cross-spawn-windows-exe-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cross-spawn-windows-exe/download/cross-spawn-windows-exe-1.1.0.tgz"},"_npmUser":{"name":"malept","email":"nodejs.npm.nospam@lazymalevolence.com"},"directories":{},"maintainers":[{"name":"malept","email":"nodejs+npm@lazymalevolence.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-spawn-windows-exe_1.1.0_1625335958849_0.42278357031606095"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T13:11:51.085Z","publish_time":1625335959256,"_cnpm_publish_time":1625335959256},"1.0.0":{"name":"cross-spawn-windows-exe","version":"1.0.0","description":"Cross-platform support for running Windows executables","main":"dist/src/index.js","repository":{"type":"git","url":"git+https://github.com/malept/cross-spawn-windows-exe.git"},"bugs":{"url":"https://github.com/malept/cross-spawn-windows-exe/issues"},"homepage":"https://github.com/malept/cross-spawn-windows-exe#readme","keywords":["cross-platform","spawn","windows","exe"],"author":{"name":"Mark Lee"},"license":"Apache-2.0","engines":{"node":">= 10"},"scripts":{"ava":"ava","build":"tsc","coverage":"nyc --reporter=lcov --reporter=text ava","docs":"typedoc src/index.ts","lint":"prettier --check . && eslint --ext .ts .","prepare":"npm run build","test":"yarn lint && yarn ava"},"dependencies":{"@malept/cross-spawn-promise":"^1.1.0","is-wsl":"^2.2.0","which":"^2.0.2"},"devDependencies":{"@istanbuljs/nyc-config-typescript":"^1.0.1","@types/node":"^14.11.2","@types/sinon":"^9.0.4","@types/which":"^1.3.2","@typescript-eslint/eslint-plugin":"^4.3.0","@typescript-eslint/parser":"^4.3.0","ava":"^3.9.0","eslint":"^7.3.0","eslint-config-prettier":"^7.0.0","eslint-plugin-ava":"^11.0.0","eslint-plugin-import":"^2.21.2","eslint-plugin-node":"^11.1.0","eslint-plugin-prettier":"^3.1.4","eslint-plugin-promise":"^4.2.1","eslint-plugin-tsdoc":"^0.2.5","husky":"^4.2.5","lint-staged":"^10.2.11","nyc":"^15.1.0","prettier":"^2.0.5","sinon":"^9.0.2","source-map-support":"^0.5.19","ts-node":"^9.0.0","typedoc":"^0.20.0-beta.24","typescript":"^4.0.3"},"ava":{"extensions":["ts"],"require":["ts-node/register"],"timeout":"3m"},"eslintConfig":{"parser":"@typescript-eslint/parser","parserOptions":{"ecmaVersion":"2018","sourceType":"module"},"plugins":["@typescript-eslint","eslint-plugin-tsdoc"],"extends":["eslint:recommended","plugin:@typescript-eslint/recommended","plugin:ava/recommended","plugin:import/errors","plugin:import/warnings","plugin:import/typescript","plugin:node/recommended","plugin:prettier/recommended","plugin:promise/recommended","prettier","prettier/@typescript-eslint"],"rules":{"node/no-unsupported-features/es-syntax":["error",{"ignores":["modules"]}],"strict":"error","tsdoc/syntax":"warn"},"overrides":[{"files":"test/*.ts","rules":{"import/no-named-as-default-member":"off"}}],"settings":{"node":{"tryExtensions":[".js",".json",".node",".ts"]}}},"eslintIgnore":["dist"],"funding":[{"type":"individual","url":"https://github.com/sponsors/malept"},{"type":"tidelift","url":"https://tidelift.com/subscription/pkg/npm-cross-spawn-windows-exe?utm_medium=referral&utm_source=npm_fund"}],"husky":{"pre-commit":"lint-staged"},"lint-staged":{"*.{json,md,yml}":"prettier --write","*.ts":["prettier --write","eslint --fix"]},"nyc":{"extends":"@istanbuljs/nyc-config-typescript"},"gitHead":"62d5951f6e23799c38bf54a7e32be06e7f828215","_id":"cross-spawn-windows-exe@1.0.0","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"shasum":"b6a44ef7a04dfb678351a41a5d8faf021b1b0bc4","size":10824,"noattachment":false,"key":"/cross-spawn-windows-exe/-/cross-spawn-windows-exe-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cross-spawn-windows-exe/download/cross-spawn-windows-exe-1.0.0.tgz"},"_npmUser":{"name":"malept","email":"nodejs.npm.nospam@lazymalevolence.com"},"directories":{},"maintainers":[{"name":"malept","email":"nodejs+npm@lazymalevolence.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-spawn-windows-exe_1.0.0_1607626448230_0.6442108188267288"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-21T13:11:50.371Z","publish_time":1607626448423,"_cnpm_publish_time":1607626448423}},"readme":"# `cross-spawn-windows-exe`\n\n> Cross-platform support for running Windows executables via Node.js.\n\n[![CI](https://github.com/malept/cross-spawn-windows-exe/workflows/CI/badge.svg)](https://github.com/malept/cross-spawn-windows-exe/actions?query=workflow%3ACI)\n[![codecov](https://codecov.io/gh/malept/cross-spawn-windows-exe/branch/main/graph/badge.svg)](https://codecov.io/gh/malept/cross-spawn-windows-exe)\n\nUtilizes [`@malept/cross-spawn-promise`](https://npm.im/@malept/cross-spawn-promise) (and by\nextension, [`cross-spawn`](https://npm.im/cross-spawn)) to execute Windows executables regardless\nof platform.\n\nFor all platforms, Node 10 or above is required.\n\nOn non-Windows, non-WSL host systems, the following dependencies are required:\n\n- .NET executables: [Mono](https://www.mono-project.com/)\n- All other Windows executables: [Wine](https://www.winehq.org/)\n\n## Usage\n\nUsing the `cross-spawn-windows-exe` API is similar in terms of function signature to `spawn` in\n`@malept/cross-spawn-promise`.\n\n### Running a .NET executable\n\n```javascript\n// Note: top-level await exists in Node >= 14.8.0. In earlier versions of Node, please wrap in an\n// async function.\n\nconst { spawnDotNet } = require(\"cross-spawn-windows-exe\");\n\nawait spawnDotNet(\"./hellodotnet.exe\", [\"--arg1\"]);\n```\n\n### Running a Windows executable\n\n```javascript\n// Note: top-level await exists in Node >= 14.8.0. In earlier versions of Node, please wrap in an\n// async function.\n\nconst { spawnExe } = require(\"cross-spawn-windows-exe\");\n\nawait spawnExe(\"./hellowindows.exe\", [\"--arg1\"]);\n```\n\n### Normalizing Paths\n\nExecutables generally can't handle UNIX-style paths that Windows Subsystem for Linux (WSL) passes\nin, since it's a Linux environment. This module provides a function to convert those paths from\nUNIX-style to Windows-style (via `wslpath`, which should be installed by default on every WSL\ndistribution), if the host system is determined to be WSL. For non-WSL environments, this is a\nno-op.\n\n```javascript\n// Note: top-level await exists in Node >= 14.8.0. In earlier versions of Node, please wrap in an\n// async function.\n\nconst { normalizePath, spawnExe } = require(\"cross-spawn-windows-exe\");\n\nconst normalizedPath = await normalizePath(\"/tmp/foo\");\nawait spawnExe(\"./openfile.exe\", [\"--filename\", normalizedPath]);\n```\n\n## Legal\n\nThis module is licensed under the [Apache License, version 2.0](https://www.apache.org/licenses/LICENSE-2.0).\nSee `LICENSE` for details.\n","_attachments":{},"homepage":"https://github.com/malept/cross-spawn-windows-exe#readme","bugs":{"url":"https://github.com/malept/cross-spawn-windows-exe/issues"},"license":"Apache-2.0"}