{"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":{"integrity":"sha512-WZzs4Ofgi/OBs1vkLmtEUX/6JjkTNWsXJqKDwIdW4lFsSzMcsGsf1OiELZL3waE/HzRO6V27cJpzqYYQRUGShQ==","shasum":"b6a44ef7a04dfb678351a41a5d8faf021b1b0bc4","tarball":"http://registry-npm.ywwl.com/cross-spawn-windows-exe/download/cross-spawn-windows-exe-1.0.0.tgz","fileCount":18,"unpackedSize":36188,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0m7QCRA9TVsSAnZWagAA2HIP/2iNaqzoy3XTiyulyU/W\nwQD/0QrDVCiwRhX7myR/IK5ilgq8Z6m6nyxdytqxP9sjgL/PqZuc3SiktQvM\nnY3u0eMa8GRKgezurccDewiunF3iO8b7LNeU3uw+PBORaF/eZ5yU6MNSSNke\nj9V1HtXw1njKkYFgYZgVwrDjeos8bKqU1STvLZ3e/J3rsehIj9Kb9K2UF0CH\nv0qYjCML9vzTX8S2qTclchHeP0ykuqAtDyNYm10b0rCWQbaTFAKXI3jYsiVf\ncEzWVXtdOz5MqleloMtE+p79XxeYpdzhDhwQiv9aoOkv3c2eRmsL9rfXMOWt\n0VEFkP5Wz8oDoCdrt16WPtWgHG/vHcUsU+6GdvXJz2lo/T2RqUqv/qB9BZ/j\nMoYA8ODyZNNGJxC+DPy7Ga0dgB0pUQeOCwBFNJgUK8SthLtZlm+9aKTOg6+v\nGnYMekhjnoCDn5mSobtIA7UC3v/jbXjetSUYetQrCgG9K6a9q0nGziguM8TN\ngTCUAJg3aPjg40h8g7/eF/kIZF2BGZlcwwtyDjVl9Npg9AqhwAzAxusg4kgV\n92R+gc+izCpxr5B/svByCtLLc5kijzN9GwbW9pyzVETNIpgye4cZgBWnuHYi\naGZixRzwtS5EvmvLqZeFJWncKYbbqk5fUWK0jjLGV0YXlR1RdZYcwiH96qs4\nVx0i\r\n=aB72\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCI5GwK/6DrxZS4jyVtxrkyIhLHtjJGjjrFCzfL++i7LAIhAKHPkWim5/WOueA5dUOIQJ6z0Q95QLlpBLPwPuA0VYPO"}],"size":10824,"noattachment":false,"key":"/cross-spawn-windows-exe/-/cross-spawn-windows-exe-1.0.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.0.0_1607626448230_0.6442108188267288"},"_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":1607626448423,"_cnpm_publish_time":1607626448423,"dist-tags":{"latest":"1.2.0"}}