{"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":{"integrity":"sha512-mLcudzsdGnF1sN2f9760Tbc8x64WaS2FD4VWk4zbk9rNl/b2jzy57zbPJ0uYRgrdc9wsXE2iEM9fu0iYDTGllA==","shasum":"823e7cb25cbe911ba5e2843b3de98edd923e909b","tarball":"http://registry-npm.ywwl.com/cross-spawn-windows-exe/download/cross-spawn-windows-exe-1.1.0.tgz","fileCount":21,"unpackedSize":37366,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4KiXCRA9TVsSAnZWagAA2lkQAJUH58f5k3ICw5zdhqtK\nzUSrp/q5FW9Kugz7E28VS+YCmNC/j3nufIgG79WYmsspbDwRuR2rCeLhWQl1\n7m3Wo+84SHRzzWepGkc7NIhC78S+c7xHKz6XmkrK9LbbWyIKQA7H1peus3y/\ntAN01a958Cd4mu746dTSDVi/oO2n8t+ALa4nqbqFZp102fZUYUeSxRN9SOJ1\nm7Ueab6TeC3ajOQ1jQJEthdByyXyX0/2YghsOkVh0dPSM2HqGHWuJ+9//XD4\n0rA08gkTQ2SLMPM0KaVxe4HA6eQ28XdTz636ir6pcF9SVuKJAqMp7/qcVLSR\ndr6/jFuyEazQ8i6s+A5AiAy8CjdY71sVQ4hc2xWrJE+VSc7z5g38M4s+fQw5\nODwWLSot8wdJaLGFSCTc2knM2Cl98/Kf9Vx3wGNG8fTw+NmDl7po5VxMaFoW\ndQf1tlyM1CZiRgzvs5z3FVcXARTBx99V+JeYWHjvlT+re6JC9i7pjgYnFHPv\nAHy9TiwZ7inebVXYmdfrIbynlKRh4UvmdUvpbZwkefg3iWhqdFJBYHhpr2VS\nRssd5jaGJ6K8OnKDPhn2Kh/jtbyKQ2oY+lRA9vnTx71FMOzMh5uY5RhftodH\n07027iVCtNjv3TU/XJl/WckmLO0GULfPP9Y5dl0mKhr+LVkJVHn2x0Msd2p7\nUpsi\r\n=ZXab\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPkMUvTkwImODFRM9QPYODVWDB4ilEHlGaaVN72D2i3gIgHeEpBYAPHyTSKsb9oC2H2PcBv1DPASvgIbcDEpFBV3I="}],"size":11181,"noattachment":false,"key":"/cross-spawn-windows-exe/-/cross-spawn-windows-exe-1.1.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.1.0_1625335958849_0.42278357031606095"},"_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":1625335959256,"_cnpm_publish_time":1625335959256,"dist-tags":{"latest":"1.2.0"}}