{"name":"@azure/functions","version":"3.5.1","description":"Microsoft Azure Functions NodeJS Framework","keywords":["azure","azure-functions","serverless","typescript"],"author":{"name":"Microsoft"},"license":"MIT","homepage":"https://github.com/Azure/azure-functions-nodejs-library","repository":{"type":"git","url":"git+https://github.com/Azure/azure-functions-nodejs-library.git"},"bugs":{"url":"https://github.com/Azure/azure-functions-nodejs-library/issues"},"main":"./dist/azure-functions.js","types":"types/index.d.ts","scripts":{"build":"webpack --mode development","minify":"webpack --mode production","test":"ts-node ./test/index.ts","lint":"eslint . --fix","updateVersion":"ts-node ./scripts/updateVersion.ts","watch":"webpack --watch --mode development"},"dependencies":{"long":"^4.0.0","uuid":"^8.3.0","iconv-lite":"^0.6.3"},"devDependencies":{"@types/chai":"^4.2.22","@types/chai-as-promised":"^7.1.5","@types/fs-extra":"^9.0.13","@types/long":"^4.0.2","@types/minimist":"^1.2.2","@types/mocha":"^9.1.1","@types/node":"^16.9.6","@types/semver":"^7.3.9","@types/sinon":"^7.0.0","@types/uuid":"^8.3.4","@typescript-eslint/eslint-plugin":"^5.12.1","@typescript-eslint/parser":"^5.12.1","chai":"^4.2.0","chai-as-promised":"^7.1.1","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-deprecation":"^1.3.2","eslint-plugin-header":"^3.1.1","eslint-plugin-prettier":"^4.0.0","eslint-webpack-plugin":"^3.2.0","fork-ts-checker-webpack-plugin":"^7.2.13","fs-extra":"^10.0.1","globby":"^11.0.0","minimist":"^1.2.6","mocha":"^9.1.1","mocha-junit-reporter":"^2.0.2","mocha-multi-reporters":"^1.5.1","prettier":"^2.4.1","semver":"^7.3.5","sinon":"^7.0.0","ts-loader":"^9.3.1","ts-node":"^3.3.0","typescript":"^4.5.5","typescript3":"npm:typescript@~3.7.0","typescript4":"npm:typescript@~4.0.0","webpack":"^5.74.0","webpack-cli":"^4.10.0"},"_resolved":"","_integrity":"","_from":"file:package.tgz","_id":"@azure/functions@3.5.1","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-6UltvJiuVpvHSwLcK/Zc6NfUwlkDLOFFx97BHCJzlWNsfiWwzwmTsxJXg4kE/LemKTHxPpfoPE+kOJ8hAdiKFQ==","shasum":"98ac5c18f84835fd5821de404c52abbd458871f6","tarball":"http://registry-npm.ywwl.com/@azure/functions/download/@azure/functions-3.5.1.tgz","fileCount":33,"unpackedSize":402008,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKM28/sepdSirCTUtHufjdfkOK4rFsWaIFIH5m7WMNIgIhALoj/+ZRIvSxrwkYc17Tg2fKXCaNn0cTZAETfnTcBv6e"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIc/uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpv5g/9FGn12+3o+IbQcrmm/p71uBlu9dGwZXI5PmdyOlSyKcyBgl8N\r\n/ris1DPkUW+gGiJuRJrs5Qhx3HQGjsW+ZJIuK2HTg0wd1AoS5x4rq8XXJjBr\r\ndbPfNlxkgs2Rhx2khPCewuOKMd17zpyctdf26JGh9jTvPxjta1WkLgWFdVD7\r\nDslxLO2APuVXDxh2JzqlSB0C/C4Ro0pBISQiit1iFBvDvO6IyQBxYzgZwf77\r\nZM5dnWWbgcUhESZSkrr6fAr8O6N99HiveXntgw1mjMSG+gogJXlGMNzEy+41\r\napM8q0ARHctt5XFsK/EXQTQFw21XP5KAA5xMRAgh42fjFf9JyhabBjwg8Z5R\r\nMp1XLRPO13QMdBxuBLSt9ffOczajzS7CbyqgaRUzsxuMgfPVhf02ai7rc+Np\r\nMkubWTwTI+/PWr8By+L3jVI85QfSMH/UGorwl+vjqxuqK+oi2RXflZVIZarP\r\nh9RXUX614jBx2ThueymJ8s29ygIRzlDPW3NHfX+VYrTF6bA4CF7nhQAsOy7X\r\nX5ybzxebsMZVtm2rCKidHeEEjw24mj41ZwcB3rIOYa0vj84hSS6htHJC2PAm\r\nXOKOcQeVKtGZil6R1jNXhZwMCy8hAMDIqgWXRcUCZeU9RigJu/c472Zk8YeC\r\npsv4vhyAMe0Eiw2ZVjxy6n7zLT1vkqSwKKo=\r\n=np4l\r\n-----END PGP SIGNATURE-----\r\n","size":96003,"noattachment":false,"key":"/@azure/functions/-/@azure/functions-3.5.1.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.5.1_1679937518318_0.6971215122743972"},"_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":1679937518566,"_cnpm_publish_time":1679937518566,"dist-tags":{"beta":"4.11.1","latest":"4.17.0","next":"4.11.1","preview":"4.16.0-preview"}}