{"name":"@azure/functions","version":"1.0.1-beta2","description":"Azure Functions types for Typescript","main":"Interfaces.d.ts","repository":{"type":"git","url":"https://github.com/Azure/azure-functions-nodejs-worker/tree/master/types/public"},"keywords":["azure-functions","typescript"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@azure/functions@1.0.1-beta2","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"mahoeger","email":"mahoeger@microsoft.com"},"dist":{"integrity":"sha512-ewVNxU2fqSCLbLuHwwvcL2ExgYNIhaztgHQfBShM9bpCBlAufTrvqlGnsEMfYv2F+BmJrkvhcDWE7E8cDz4X0g==","shasum":"0d864ec9918b44c58921265e9e559595b26322cd","tarball":"http://registry-npm.ywwl.com/@azure/functions/download/@azure/functions-1.0.1-beta2.tgz","fileCount":3,"unpackedSize":7978,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOOGKCRA9TVsSAnZWagAAF0cP/34Jvp1KaR1osmWNj2Ri\nnQ3MPuaa2rei/JNmTpq7SnJMoqO/p6or0iQndMJfbVhYX8MxX/CX82HoeLga\nnep7TslbjDxe88ULJdPkTigClh7MbkuWp574f79l/nHrML23lX2CdpJc6Cn0\nHlq5L8k6YDQEsfXg6mhrSToScQfGZ6LNwzBL8FKWTyDCM/bB+XU0zOYlbxOo\n/dVoKJxKfnLjJ4ysBjeqZGj42CBW1NoXTe7ELKT+B5+XzeDfPwQxGUk/xBDq\nqypKGUi3LPscc6zPnTNNqO6z7lPtlmKtYuSZivQU5/3FeOEK0zR1mUcjCOyR\nmfapcIjWxwHQaaGKShGPvIjFkjJJO9CzTQwfKzz9ibz7szt1LDgjpk2SDI+u\n5An+j6ttd+6/bsj19n9iRWUIoAkAsqT4smnnbuxyrGYctNvaotw+3MdYj1b9\ngOIEQHpHqq0lc8GEL9OzoanDIKmoa0lULQMg4ircoeOSuARZxa+7vDJ21Ikj\nfR+z+IEFDrZKjY4oLGFPUalHYuAi8FJ7LV3e4/lx4UH5deZmBiwP+2HTNd67\nOytNisUpWpxEQQVJwR1lsZPBm5JoGc2H8xQm+wI7ELP6D0cRwAla6c05mMGU\n8w3WfxKz7hCTwujyNj630UmmeMMUCSMCbST0bkyayi4dDnA4didnXjnCQ43U\nTv97\r\n=DiIa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqCL6BeS7of0cI1kceGbvnB9jQOmwYkDCMmv1nKUx2vAIgXiDPYRBmm+SX4dqJluzKiTBWqHgehGMVrn0BQ8XuB1Y="}],"size":2650,"noattachment":false,"key":"/@azure/functions/-/@azure/functions-1.0.1-beta2.tgz"},"maintainers":[{"email":"ahmelsayed@outlook.com","name":"ahmelsayed"},{"email":"facaval@microsoft.com","name":"facavalcante"},{"email":"mahoeger@microsoft.com","name":"mahoeger"},{"email":"paul.batum@gmail.com","name":"paulbatum"},{"email":"pgopa@microsoft.com","name":"pgopa"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/functions_1.0.1-beta2_1547231626064_0.4694852687211264"},"_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":1547231626230,"_cnpm_publish_time":1547231626230,"dist-tags":{"beta":"4.11.1","latest":"4.17.0","next":"4.11.1","preview":"4.16.0-preview"}}