{"_id":"@azure/core-process","name":"@azure/core-process","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@azure/core-process","version":"1.0.0","description":"Secure, cross-platform process launching for Node.js","sdk-type":"client","type":"module","main":"./dist/commonjs/index.js","module":"./dist/esm/index.js","types":"./dist/commonjs/index.d.ts","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"repository":{"type":"git","url":"git+https://github.com/Azure/azure-sdk-for-js.git","directory":"sdk/core/core-process"},"engines":{"node":">=22.0.0"},"keywords":["node","azure","cloud","process","spawn","security"],"author":{"name":"Microsoft Corporation"},"license":"MIT","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"homepage":"https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-process","sideEffects":false,"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","devDependencies":{"@microsoft/api-extractor":"^7.52.4","@types/node":"^22.0.0","@vitest/coverage-istanbul":"^4.1.2","cross-env":"^10.1.0","eslint":"^10.8.0","prettier":"^3.9.1","rimraf":"^6.1.0","typescript":"~6.0.2","vitest":"^4.1.2","@azure/eslint-plugin-azure-sdk":"^3.0.0","@microsoft/warp":"^1.0.0"},"scripts":{"build":"npm run clean && warp build && npm run extract-api","build:samples":"echo Skipped.","check-format":"prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","clean":"rimraf --glob dist temp types *.tgz *.log","execute:samples":"echo skipped","extract-api":"node ../../../common/tools/dev-tool/launch.ts run build-package && node ../../../common/tools/dev-tool/launch.ts run extract-api","format":"prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"","lint":"eslint package.json src test","lint:fix":"eslint package.json src test --fix --fix-type [problem,suggestion]","pack":"pnpm pack 2>&1","test":"tsc -b --noEmit && npm run test:node","test:browser":"echo skipped","test:node":"vitest run","update-snippets":"node ../../../common/tools/dev-tool/launch.ts run update-snippets"},"_id":"@azure/core-process@1.0.0","_integrity":"sha512-/shnJ+ooO8WPxDhPEeI/2oRQuubn16gZ6CvlbpWbEswZfzwI9tI/sMAHmF3x1LuQ9yZYXfLW3TjzGMLEC5blKg==","_resolved":"M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\bd59651e-57a6-41f4-bf83-834a5904c498\\azure-core-process-1.0.0.tgz","_from":"file:M:\\SvcFab\\_App\\MS.Ess.PackageManager.Publisher_App1\\temp\\bd59651e-57a6-41f4-bf83-834a5904c498\\azure-core-process-1.0.0.tgz","tag":"latest","_nodeVersion":"18.5.0","dist":{"integrity":"sha512-/shnJ+ooO8WPxDhPEeI/2oRQuubn16gZ6CvlbpWbEswZfzwI9tI/sMAHmF3x1LuQ9yZYXfLW3TjzGMLEC5blKg==","shasum":"c3af1c17223d6538e1b36967ddc94cdae532cb83","tarball":"https://registry.npmjs.org/@azure/core-process/-/core-process-1.0.0.tgz","fileCount":43,"unpackedSize":191385,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDy+INZZrvWcY+UUn0J3b6fnlMrJ0K6GLMl+WVj5XjMwwIhAMX79amZF1QGQa4/D4HJxkTCba+0sjuQJj6VsgT8SwWP"}]},"_npmUser":{"name":"microsoft1es","email":"npmjs@microsoft.com"},"directories":{},"maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core-process_1.0.0_1786606018797_0.24538915018967034"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-13T07:26:58.622Z","1.0.0":"2026-08-13T07:26:58.935Z","modified":"2026-08-13T07:26:59.239Z"},"maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"},{"name":"microsoft-oss-releases","email":"microsoft-oss-publishing@microsoft.com"}],"description":"Secure, cross-platform process launching for Node.js","homepage":"https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-process","keywords":["node","azure","cloud","process","spawn","security"],"repository":{"type":"git","url":"git+https://github.com/Azure/azure-sdk-for-js.git","directory":"sdk/core/core-process"},"author":{"name":"Microsoft Corporation"},"bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"license":"MIT","readme":"# Azure Core Process client library for JavaScript\n\n`@azure/core-process` provides Node.js process-launching primitives that avoid\nambient shell parsing. It is intended for Azure SDK packages and tools that\nneed to invoke external executables on Windows, macOS, or Linux.\n\n## Getting started\n\n### Install the package\n\n```bash\nnpm install @azure/core-process\n```\n\n### Prerequisites\n\n- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule).\n\n## Key concepts\n\nCommands and arguments are always supplied separately. The package does not\nprovide a command-string API and does not allow callers to enable a shell.\n\n```ts snippet:ReadmeSampleRunExecutable\nimport { execFile } from \"@azure/core-process\";\n\nconst { stdout } = await execFile(\"git\", [\"rev-parse\", \"--show-toplevel\"]);\nconsole.log(stdout);\n```\n\nOn Windows, native `.exe` and `.com` files are preferred. Batch files are\ndisabled by default because arbitrary arguments cannot be transported safely\nthrough every `.cmd` or `.bat` wrapper. A caller that expects a batch shim can\nopt into the restricted batch path:\n\n```ts snippet:ReadmeSampleRunWindowsBatchFile\nimport { execFile } from \"@azure/core-process\";\n\nconst { stdout } = await execFile(\"npm\", [\"--version\"], {\n  allowWindowsBatchFiles: true,\n});\nconsole.log(stdout);\n```\n\nThe restricted batch path rejects command operators, variable expansion,\nnewlines, and other values that cannot be proven safe before `cmd.exe` starts.\nIf an application needs to pass those values, it must invoke a native\nexecutable or interpreter entry point directly.\n\n## Security boundary\n\nThis package prevents command-line data from being interpreted by an ambient\noperating-system shell. It does not establish that an executable found on\n`PATH` is trustworthy, sanitize code intentionally passed to an interpreter,\nor prevent command-specific option injection.\n\nDo not place secrets in command-line arguments. Process arguments may be\nvisible to other local processes and operating-system diagnostics.\n\n## Troubleshooting\n\nAn unsafe Windows batch argument fails with a `ProcessError` before the child\nprocess is created. Prefer a native executable when the argument cannot be\nchanged.\n\n## Contributing\n\nSee the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md).\n","readmeFilename":"README.md","_rev":"1-d4da5a6bdeba1bb56f317adbc13f5552"}