{"name":"@azure/functions","version":"4.9.0","keywords":["azure","azure-functions","serverless","typescript"],"author":{"name":"Microsoft"},"license":"MIT","_id":"@azure/functions@4.9.0","maintainers":[{"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"},{"name":"anatolib","email":"anatolib@microsoft.com"},{"name":"gaaguiar","email":"gavin.aguiar@microsoft.com"},{"name":"victoriahall","email":"victoriahall@microsoft.com"},{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},{"name":"swapnilnagar","email":"swapnilnagar@microsoft.com"},{"name":"microsoft1es","email":"npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-functions-nodejs-library","bugs":{"url":"https://github.com/Azure/azure-functions-nodejs-library/issues"},"dist":{"shasum":"20938b4cb8064b2a4b777b0e58759d33afba08b1","tarball":"http://registry-npm.ywwl.com/@azure/functions/download/@azure/functions-4.9.0.tgz","fileCount":81,"integrity":"sha512-IlgCl2/OiSXjMaow5oUhtMQMlsxEAZwsk7BXoT44vgzdIaiZz1VjCzGK9D/7pi6bd0FSyDo6H/1mZASzcD0K6A==","signatures":[{"sig":"MEUCICcLQlMj6qeASBV7mcdUDHNnD2FaDZFgyL4EFRIZJgpPAiEA4Jknf0jx0dYMiOpOlRsHUvzQ77WqbmBu3Dg3uESIqnA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":737371,"size":144276,"noattachment":false,"key":"/@azure/functions/-/@azure/functions-4.9.0.tgz"},"main":"./dist/azure-functions.js","_from":"file:package.tgz","types":"types/index.d.ts","engines":{"node":">=20.0"},"scripts":{"lint":"eslint . --fix","test":"ts-node ./test/index.ts","build":"webpack --mode development","watch":"webpack --watch --mode development","format":"prettier . --write","minify":"webpack --mode production","updateVersion":"ts-node ./scripts/updateVersion.ts","validateRelease":"ts-node ./scripts/validateRelease.ts"},"_npmUser":{"name":"victoriahall","email":"victoriahall@microsoft.com"},"_resolved":"/mnt/vss/_work/1/officialBuild/drop/package.tgz","_integrity":"sha512-IlgCl2/OiSXjMaow5oUhtMQMlsxEAZwsk7BXoT44vgzdIaiZz1VjCzGK9D/7pi6bd0FSyDo6H/1mZASzcD0K6A==","repository":{"url":"git+https://github.com/Azure/azure-functions-nodejs-library.git","type":"git"},"_npmVersion":"10.8.2","description":"Microsoft Azure Functions NodeJS Framework","directories":{},"_nodeVersion":"18.20.8","dependencies":{"long":"^4.0.0","cookie":"^0.7.0","undici":"^5.29.0","@azure/functions-extensions-base":"0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^11.1.0","sinon":"^20.0.0","eslint":"^7.32.0","globby":"^11.0.0","semver":"^7.3.5","ts-node":"^3.3.0","webpack":"^5.74.0","fs-extra":"^10.0.1","minimist":"^1.2.6","prettier":"^2.4.1","ts-loader":"^9.3.1","typescript":"^4.9.5","@types/chai":"^4.2.22","@types/long":"^4.0.2","@types/node":"^18.0.0","typescript4":"npm:typescript@~4.0.0","webpack-cli":"^4.10.0","@types/mocha":"^9.1.1","@types/sinon":"^17.0.4","@types/cookie":"^0.6.0","@types/semver":"^7.3.9","@types/fs-extra":"^9.0.13","@types/minimist":"^1.2.2","chai-as-promised":"^7.1.1","eslint-plugin-header":"^3.1.1","eslint-plugin-import":"^2.29.0","mocha-junit-reporter":"^2.0.2","eslint-webpack-plugin":"^3.2.0","mocha-multi-reporters":"^1.5.1","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^4.0.0","@types/chai-as-promised":"^7.1.5","@typescript-eslint/parser":"^5.12.1","eslint-plugin-deprecation":"^1.3.2","fork-ts-checker-webpack-plugin":"^7.2.13","@typescript-eslint/eslint-plugin":"^5.12.1","eslint-plugin-simple-import-sort":"^10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/functions_4.9.0_1762378720928_0.7400978643061678","host":"s3://npm-registry-packages-npm-production"},"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/public/514/v4.x)](https://azfunc.visualstudio.com/public/_build/latest?definitionId=514&branchName=v4.x) [![Test Status](https://img.shields.io/azure-devops/tests/azfunc/public/514/v4.x?compact_message)](https://azfunc.visualstudio.com/public/_build/latest?definitionId=514&branchName=v4.x)|GA|24, 22|\r\n|v3.x|[![Build Status](https://img.shields.io/azure-devops/build/azfunc/public/514/v3.x)](https://azfunc.visualstudio.com/public/_build/latest?definitionId=514&branchName=v3.x) [![Test Status](https://img.shields.io/azure-devops/tests/azfunc/public/514/v3.x?compact_message)](https://azfunc.visualstudio.com/public/_build/latest?definitionId=514&branchName=v3.x)|GA|24, 22|\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":1762378721116,"_cnpm_publish_time":1762378721116,"dist-tags":{"beta":"4.11.1","latest":"4.17.0","next":"4.11.1","preview":"4.16.0-preview"}}