{"name":"@azure/functions","version":"2.0.0-beta.0","description":"Azure Functions types for Typescript","repository":{"type":"git","url":"https://github.com/Azure/azure-functions-nodejs-worker/tree/v2.x/types"},"keywords":["azure-functions","typescript"],"types":"./index.d.ts","author":{"name":"Microsoft"},"license":"MIT","readme":"# Type definitions for Azure Functions\nThis package contains type definitions for using TypeScript with Azure Functions. Follow [this tutorial](https://docs.microsoft.com/azure/azure-functions/create-first-function-vs-code-typescript) to create your first TypeScript function.\n\n# Versioning\nThe version of the package matches the version of the [Node.js worker](https://github.com/Azure/azure-functions-nodejs-worker). It is recommended to install the latest version of the package matching the major version of your worker.\n\n|Worker Version|[Runtime Version](https://docs.microsoft.com/azure/azure-functions/functions-versions)|Support level|Node.js Versions|\n|---|---|---|---|\n|3|4|Preview|14|\n|2|3|GA (Recommended)|14, 12, 10|\n|1|2|GA (Maintenance mode)|10, 8|\n\n# Install\nBecause this package only contains type definitions, it should be saved under `devDependencies`.\n\n`npm install @azure/functions --save-dev`\n\n# Usage\n```typescript\nimport { AzureFunction, Context, HttpRequest } from \"@azure/functions\";\n\nconst index: AzureFunction = async function (context: Context, req: HttpRequest) {\n    context.log('JavaScript HTTP trigger function processed a request.');\n    if (req.query.name || (req.body && req.body.name)) {\n        context.res = {\n            status: \"200\",\n            body: \"Hello \" + (req.query.name || req.body.name)\n        };\n    } else {\n        context.res = {\n            status: 400,\n            body: \"Please pass a name on the query string or in the request body\"\n        };\n    }\n}\n\nexport { index };\n```\n\n# Contributing\n\nSee \"Contributing\" section on the Node.js worker repo [here](https://github.com/Azure/azure-functions-nodejs-worker#contributing).\n","readmeFilename":"README.md","_id":"@azure/functions@2.0.0-beta.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-MbqMkxJeiTfqulCjvB6J3zHa+SCr6ejK/L2ArXp1RND1w4YXMCKbkJqrdy5L1+ZieBH8KIXNCwT8JaULPIvoww==","shasum":"e9f0169bbe4467ca460956b020ec7f44a231ad25","tarball":"http://registry-npm.ywwl.com/@azure/functions/download/@azure/functions-2.0.0-beta.0.tgz","fileCount":4,"unpackedSize":13907,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID/f5HhXKTnWgOzG8i0ZxJLpUZIMrvTuZ7cu+QLqpie7AiAYgR/qFJxXWwDHMAQgOR1Um0qoh9jMX4WxejacUuHAkg=="}],"size":4457,"noattachment":false,"key":"/@azure/functions/-/@azure/functions-2.0.0-beta.0.tgz"},"_npmUser":{"name":"erijiz","email":"erijiz@microsoft.com"},"directories":{},"maintainers":[{"name":"erijiz","email":"erijiz@microsoft.com"},{"name":"anatolib","email":"anatolib@microsoft.com"},{"name":"pgopa","email":"pgopa@microsoft.com"},{"name":"paulbatum","email":"paul.batum@gmail.com"},{"name":"facavalcante","email":"facaval@microsoft.com"},{"name":"ahmelsayed","email":"ahmelsayed@outlook.com"},{"name":"mahoeger","email":"mahoeger@microsoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/functions_2.0.0-beta.0_1636065445685_0.8852549734965356"},"_hasShrinkwrap":false,"publish_time":1636065445909,"_cnpm_publish_time":1636065445909,"dist-tags":{"beta":"4.11.1","latest":"4.17.0","next":"4.11.1","preview":"4.16.0-preview"}}