{"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":{"integrity":"sha512-mkLtJJcYbDCxEG7Js6eUnUNndWjyUZwJ3H7bErmmtOYU/Zb99DyUkpamuIZE0b3bhmJyZ7D90uS6f+CGxRRjOw==","shasum":"46253b0f497676e766faf4a7061004618b5ac5ec","tarball":"http://registry-npm.ywwl.com/cross-spawn-windows-exe/download/cross-spawn-windows-exe-1.2.0.tgz","fileCount":21,"unpackedSize":40299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8T8JCRA9TVsSAnZWagAAzJwP/2NR19rjPNSfHqA4iZE/\n3Uci9O4V12/uiA/yntafPT/pU94hxqMmZdBq1ZBDj5T54CBlCN5+O9FlWepb\nCnBtwIfwOGl88e3SWtDjQDXGHaS5veeCA9JNw95cXQ8zBib3YV2pK99ShBBd\nZCmEmQgZj1pNqNflhSsoF8Cws+1kDTUyZFBvz44h16xa2Cgcb5GQnHz6t4rc\nyBnOR0zPPy6Dm6bgwsMfKBFP8GtQYhO1ngKPhk7LKztHZ75rR8zXjsNkojY2\nkk+XFVL/mSgClRrgwXMAN9XZEDI9hRaAfWoeOf7V5hmhbhTh7JLejIkB3Nx6\nKDQh1Kiky77is8SQoNx8RB5PKj7QS+iIa41ZauOm4GXsStiCgV/+yWVBTD2Q\niFU4IZq09xNe1zRAlXh3PgKCwNPInYiFM0IIxoMX9Hk+RYUFT9mTGdSInRCZ\nvZjgNymkyjJJFmVn8WQbm1o23IIGqmQsL+ouP+1NWac2VQ9oQGQDk4+U2Zfa\nJOHnwyPYVnIjKRDqLJszmwvxBmNcb8u7wATi0JP1IPz0SVJUEu5h47XkG/tN\nGxsxb5tD5V6O/nxGCieMqkKbPgVOdGnYeqFCC64lbKUFvivLhZqObVYz7W59\nqrOPcnQgAdi18l4syVlYY/gNCMPe5R6aNNF1Lv3K6gQ/hmF2WM9eQScOVbUK\noYOW\r\n=reH6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDabcbMPDYe4bfwAzeK04fEdsFqV9JVru0ZPdTMcEpWKQIhAKpor8S/rLc1rzBcp7Qd1pRSUsFvTfYSpASD675SS6XJ"}],"size":11585,"noattachment":false,"key":"/cross-spawn-windows-exe/-/cross-spawn-windows-exe-1.2.0.tgz"},"_npmUser":{"name":"malept","email":"nodejs.npm.nospam@lazymalevolence.com"},"directories":{},"maintainers":[{"name":"malept","email":"nodejs.npm.nospam@lazymalevolence.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-spawn-windows-exe_1.2.0_1626423049595_0.8928978062056563"},"_hasShrinkwrap":false,"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","publish_time":1626423049708,"_cnpm_publish_time":1626423049708,"dist-tags":{"latest":"1.2.0"}}