{"name":"@azure/functions","version":"3.2.0","description":"Azure Functions types for Typescript","repository":{"type":"git","url":"https://github.com/Azure/azure-functions-nodejs-worker/tree/v3.x/types"},"keywords":["azure-functions","typescript"],"types":"./index.d.ts","author":{"name":"Microsoft"},"license":"MIT","_resolved":"","_integrity":"","_from":"file:package.tgz","_id":"@azure/functions@3.2.0","_nodeVersion":"14.19.2","_npmVersion":"6.14.17","dist":{"integrity":"sha512-HbE7iORnYcjLzKNf5mIQRJQDTsVxhoXHRWEZ6KWdGh4e7+F9xTloiBicavbSoVmlAYivenIVpryHanVwsQaHUw==","shasum":"c73003db8bd93be186824db29e98e00879bf0f91","tarball":"http://registry-npm.ywwl.com/@azure/functions/download/@azure/functions-3.2.0.tgz","fileCount":8,"unpackedSize":29073,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnJ+L6VaSMyZY/uDa1rNwbI1jWTeNscFDUmayECiZIjgIhAItaztcCxHvG43ujXA7QwNAEwcHEpVuDrrJcY94LOE2f"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJijAXIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpS/BAAiVPSSDuiFh7OMIbifdES/yoVWwZsT+pIuozujlD0BS7sWZWN\r\nelB+bmU55TiVXG+UMgjOgDSSDVfvEr68rl68wDOwAeSGWWnpvNYGxnYXveTx\r\nB5OZAaqNGVaDv3zPcE5soB/tFvg+eoTM6lasx0VaAYVqxKx3qARpLDnMsPJg\r\nWCgNIO9ClmnzI/UfTRxOcKqXhS0WXR0s4HzZgXBTxdo3REzv3tsDgpWywAmF\r\n0EZB10OdQt0AcdY/OC+qLlTlbk8tnoNo3MWEbV4j2X2ULT7/fNN/Ep7YKWOi\r\nqt5cXJwBlyNc5Im/Od95XyFuxnHIDRIvxvAwCZ4KE5nCzMwxq0e59IeGFzaR\r\nAnxnDnc8aNuw1wD3Pwe5+uks3RrW4oMMEaks5P3V1agKL0XKvIUPzi/ePNn9\r\n5ybjOykVgtp0fHxdZtmcuN4GDXAn1B9ZUzzuk7mBJ7POJeaSzPw2CAfcJIzY\r\nZtO9K5fnQnWC2a6s7Jqc/C4duu/Nuf21U9Ga7S/Lu2yHnUeeQQ43SYgOQ/XA\r\nIa0ncEL8AqDdjvRtZP44h94WvnvzczCyIDGE2xEOq8QtkoRI0bTTehsgWZYe\r\n0wkjrMFNZaWpYXQoeMXCOomuKzSfYUx40Phya40H/d88fYYTCuY4k07VAct+\r\nkfa5sIUB5iiivC8Njtz9JLAGjl856Bu0fb8=\r\n=gUaR\r\n-----END PGP SIGNATURE-----\r\n","size":8007,"noattachment":false,"key":"/@azure/functions/-/@azure/functions-3.2.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_3.2.0_1653343688380_0.7454616470240423"},"_hasShrinkwrap":false,"readme":"# Azure Functions Node.js Programming Model\r\n\r\n|Branch|Status|Support level|Node.js Versions|\r\n|---|---|---|---|\r\n|v4.x (default)|[![Build Status](https://img.shields.io/azure-devops/build/azfunc/Azure%2520Functions/145/v4.x)](https://azfunc.visualstudio.com/Azure%20Functions/_build/latest?definitionId=145&branchName=v4.x) [![Test Status](https://img.shields.io/azure-devops/tests/azfunc/Azure%2520Functions/146/v4.x?compact_message)](https://azfunc.visualstudio.com/Azure%20Functions/_build/latest?definitionId=146&branchName=v4.x)|GA|20, 18|\r\n|v3.x|[![Build Status](https://img.shields.io/azure-devops/build/azfunc/Azure%2520Functions/145/v3.x)](https://azfunc.visualstudio.com/Azure%20Functions/_build/latest?definitionId=145&branchName=v3.x) [![Test Status](https://img.shields.io/azure-devops/tests/azfunc/Azure%2520Functions/146/v3.x?compact_message)](https://azfunc.visualstudio.com/Azure%20Functions/_build/latest?definitionId=146&branchName=v3.x)|GA|20, 18, 16, 14|\r\n\r\n> _**Version 4 is Generally Available! 🎉✨ Read our [blog post](https://aka.ms/AzFuncNodeV4) and let us know what you think by reacting or commenting on our [GA discussion thread](https://aka.ms/AzFuncNodeV4Discussion)**_\r\n\r\n## Install\r\n\r\n```bash\r\nnpm install @azure/functions\r\n```\r\n\r\n## Documentation\r\n\r\n- [Azure Functions JavaScript Developer Guide](https://learn.microsoft.com/azure/azure-functions/functions-reference-node?pivots=nodejs-model-v4)\r\n- [Upgrade guide from v3 to v4](https://learn.microsoft.com/azure/azure-functions/functions-node-upgrade-v4)\r\n- [Create your first TypeScript function](https://docs.microsoft.com/azure/azure-functions/create-first-function-vs-code-typescript?pivots=nodejs-model-v4)\r\n- [Create your first JavaScript function](https://docs.microsoft.com/azure/azure-functions/create-first-function-vs-code-node?pivots=nodejs-model-v4)\r\n\r\n## Considerations\r\n\r\n- The Node.js \"programming model\" shouldn't be confused with the Azure Functions \"runtime\".\r\n  - _**Programming model**_: Defines how you author your code and is specific to JavaScript and TypeScript.\r\n  - _**Runtime**_: Defines underlying behavior of Azure Functions and is shared across all languages.\r\n- The programming model version is strictly tied to the version of the [`@azure/functions`](https://www.npmjs.com/package/@azure/functions) npm package, and is versioned independently of the [runtime](https://learn.microsoft.com/azure/azure-functions/functions-versions?pivots=programming-language-javascript). Both the runtime and the programming model use \"4\" as their latest major version, but that is purely a coincidence.\r\n- You can't mix the v3 and v4 programming models in the same function app. As soon as you register one v4 function in your app, any v3 functions registered in _function.json_ files are ignored.\r\n\r\n## Usage\r\n\r\n### TypeScript\r\n\r\n```typescript\r\nimport { app, HttpRequest, HttpResponseInit, InvocationContext } from \"@azure/functions\";\r\n\r\nexport async function httpTrigger1(request: HttpRequest, context: InvocationContext): Promise<HttpResponseInit> {\r\n    context.log(`Http function processed request for url \"${request.url}\"`);\r\n\r\n    const name = request.query.get('name') || await request.text() || 'world';\r\n\r\n    return { body: `Hello, ${name}!` };\r\n};\r\n\r\napp.http('httpTrigger1', {\r\n    methods: ['GET', 'POST'],\r\n    authLevel: 'anonymous',\r\n    handler: httpTrigger1\r\n});\r\n```\r\n\r\n### JavaScript\r\n\r\n```javascript\r\nconst { app } = require('@azure/functions');\r\n\r\napp.http('httpTrigger1', {\r\n    methods: ['GET', 'POST'],\r\n    authLevel: 'anonymous',\r\n    handler: async (request, context) => {\r\n        context.log(`Http function processed request for url \"${request.url}\"`);\r\n\r\n        const name = request.query.get('name') || await request.text() || 'world';\r\n\r\n        return { body: `Hello, ${name}!` };\r\n    }\r\n});\r\n```\r\n","publish_time":1653343688619,"_cnpm_publish_time":1653343688619,"dist-tags":{"beta":"4.11.1","latest":"4.17.0","next":"4.11.1","preview":"4.16.0-preview"}}