{"_id":"@openfunction/functions-framework","_rev":"72-a4bfbe18f7ae3027c7c9e7ced9794726","time":{"created":"2022-02-18T09:07:29.006Z","0.1.0":"2021-07-17T06:08:58.818Z","modified":"2022-11-03T15:33:15.350Z","0.1.1":"2021-07-17T06:19:17.444Z","0.1.2":"2021-07-17T07:49:03.196Z","0.1.3":"2021-07-18T02:52:44.081Z","0.2.0":"2021-08-01T09:17:51.484Z","0.2.1":"2021-08-07T04:29:29.390Z","0.2.2":"2021-08-07T05:29:22.898Z","0.2.3":"2021-08-07T05:33:49.134Z","0.2.4":"2021-08-07T05:42:15.514Z","0.2.5":"2021-08-07T05:51:52.814Z","0.2.6":"2021-08-07T06:04:57.731Z","0.2.7":"2021-08-07T07:27:22.954Z","0.2.8":"2021-08-07T07:34:47.697Z","0.2.9":"2021-08-07T07:39:23.492Z","0.2.10":"2021-08-07T07:44:49.804Z","0.3.0":"2021-08-07T09:27:54.291Z","0.3.1":"2021-09-29T04:29:11.904Z","0.3.2":"2022-02-18T07:52:21.225Z","0.3.3":"2022-02-18T09:07:29.469Z","0.3.4":"2022-02-28T08:52:31.032Z","0.3.5":"2022-03-01T03:02:33.901Z","0.3.6":"2022-03-01T06:37:17.456Z","0.4.0":"2022-04-16T13:47:41.361Z","0.4.1":"2022-04-17T08:17:31.652Z","0.5.0":"2022-05-27T13:34:57.772Z","0.6.0":"2022-10-08T14:03:25.015Z","0.6.1":"2022-11-03T15:33:15.279Z"},"name":"@openfunction/functions-framework","dist-tags":{"latest":"0.6.1"},"versions":{"0.3.3":{"name":"@openfunction/functions-framework","version":"0.3.3","description":"Nodejs functions framework for OpenFunction","main":"index.js","bin":{"functions-framework":"./index.js"},"type":"module","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/openfunction/functions-framework-nodejs.git"},"author":{"name":"OpenFunction"},"license":"ISC","bugs":{"url":"https://github.com/openfunction/functions-framework-nodejs/issues"},"homepage":"https://github.com/openfunction/functions-framework-nodejs#readme","devDependencies":{"standard":"^16.0.3"},"dependencies":{"@roadwork/dapr-js-sdk":"^0.3.1","commander":"^8.0.0","express":"^4.17.1","lodash":"^4.17.21","morgan":"^1.10.0","read-pkg-up":"^8.0.0","semver":"^7.3.5"},"gitHead":"c57c549894cb9feef7072dffa765fa2412b7274f","_id":"@openfunction/functions-framework@0.3.3","_nodeVersion":"12.1.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-XfIQHyECR3RaxCbrBNCGIy0sM9oDuiOzY1O/pdMDTCwEaqGqMlPJzbcSMq21T9og11CqTK27PtDhhD1ISh6VOQ==","shasum":"2b5026ab05d549fb9d6326f8e60f0a59d52b9acf","tarball":"https://registry.npmjs.org/@openfunction/functions-framework/-/functions-framework-0.3.3.tgz","fileCount":17,"unpackedSize":219198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiD2HRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmppUw/+KPS5Dk1h/91vMDvkj/0dXRZu7lPRWo+iY24PeT6K33LqO2ap\r\noBzwQ4GbWAmRJXMU0QPwVhgnrbPI0tMjJNDEE7FyEzBxON7DkpM1vP6KX9dh\r\no2kTNqNEFQWPqto7jDypCCYvKBkDDL8y1sBrktg3YwUDHhxPQmtgjtZEu8dx\r\nD5P22SWMkZAbnofaOgVQoCUnA5tF45I8iXUNM+th0EZ6XTX+BFQpofds7dq7\r\ni3penqZvdcpdLfOQEw4EAY4/4VN9rkif0jFM4Ozp/scbZePsBlTgrnBm6uoT\r\nxBoQBs6qa0XizGzi0VcFTZFza2SS1VNeh6QvyGhXNP1NC4zGh1X75E4GpKzm\r\nej3hY3veHZHdR3vAQhkNuLPAON2vj5GNczwkcWavPWX/MMf1buciEkKh1qW7\r\nC14Mae9gw/wmgQxnnsmC8TNDgtxtRWf3j1b45mfOSv3dM1mlakoyZEFKQXq4\r\nnbvRxfDrakJrTM2GMxu0FlPvWaRGnj/XSOgrGGleBqQylqF5dYvlTGcAakIa\r\n/FqU30jtJT9HPwosubEeFSc6EC0jGXUbYur8QUiELYyWcZ1rJhPTbEALjmDw\r\nKVzrHMdHF9XRQDKnpDTDssZ3Kmtf4iQhWKY5OAz9zPN+6uB9RXFNFzoF9RTI\r\n9clrtE5MAIhcC+VelVSDqvcowg/aIlnxysc=\r\n=WbfS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCE8gQeEVj7Z+Wnw46DpddqsP6U86scvZrDAaTLaE3qVwIgSsX3VD5xhaO4b+p+YAxDJhuL/IQX7ylmFptj4s9JpdQ="}]},"_npmUser":{"name":"openfunction","email":"openfunction@kubesphere.io"},"directories":{},"maintainers":[{"name":"openfunction","email":"openfunction@kubesphere.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/functions-framework_0.3.3_1645175249059_0.1278638809397301"},"_hasShrinkwrap":false,"deprecated":"archive old version"},"0.3.5":{"name":"@openfunction/functions-framework","version":"0.3.5","description":"FaaS (Function as a service) framework for writing portable Node.js functions","engines":{"node":">=10.0.0"},"repository":{"type":"git","url":"git+https://github.com/openfunction/functions-framework-nodejs.git"},"main":"build/src/index.js","types":"build/src/index.d.ts","exports":{".":"./build/src/index.js","./testing":"./build/src/testing.js"},"dependencies":{"@openfunction/functions-framework":"0.3.5","body-parser":"^1.18.3","cloudevents":"^5.3.2","express":"^4.16.4","minimist":"^1.2.5","on-finished":"^2.3.0","read-pkg-up":"^7.0.1","semver":"^7.3.5"},"scripts":{"test":"mocha build/test --recursive","build":"npm run clean && npm run compile","conformance":"./run_conformance_tests.sh","check":"gts check","clean":"gts clean","compile":"tsc -p .","fix":"gts fix","docs":"api-extractor run --local --verbose","watch":"npm run compile -- --watch","prepare":"npm run build","pretest":"npm run compile"},"bin":{"functions-framework":"build/src/main.js","functions-framework-nodejs":"build/src/main.js"},"author":{"name":"OpenFunction"},"license":"Apache-2.0","devDependencies":{"@microsoft/api-extractor":"^7.18.20","@types/body-parser":"1.19.2","@types/express":"4.17.13","@types/minimist":"1.2.2","@types/mocha":"9.0.0","@types/node":"14.18.11","@types/on-finished":"2.3.1","@types/semver":"^7.3.6","@types/sinon":"^10.0.0","@types/supertest":"2.0.11","gts":"3.1.0","mocha":"9.1.2","pack-n-play":"^1.0.0-2","sinon":"^12.0.0","supertest":"6.1.6","typescript":"^4.5.5"},"gitHead":"dec33da8778f2b227cb757d54e318507bd181603","bugs":{"url":"https://github.com/openfunction/functions-framework-nodejs/issues"},"homepage":"https://github.com/openfunction/functions-framework-nodejs#readme","_id":"@openfunction/functions-framework@0.3.5","_nodeVersion":"17.6.0","_npmVersion":"8.5.2","dist":{"integrity":"sha512-lOajc/7X2InNUFQd+vu8VVNkTceegxaFeBzsgRprtUNHaKB/4XPN3QfNRJfJWdjZpVKvHopb/slf8qFqWVHcoQ==","shasum":"6f4720a3846270151a2f29ac0257294f72f7fde0","tarball":"https://registry.npmjs.org/@openfunction/functions-framework/-/functions-framework-0.3.5.tgz","fileCount":35,"unpackedSize":102157,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHYzJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwVBAAjhI6hVVc23S5AeIr+zZkDpMMGVqNEUCG4qKzOUHoHbslnOUb\r\nRJPILLtcUZglyzG2Oo8vsy5ZpP23uCCnwZrDn2SwUXyiVLZB+gp8pk0zMtZ2\r\nusXALaPfpz9NWdt/W+YUG5A6NoO+8azhmQ1ZdTf5gbChYsexs2Ha+NWGjJ6J\r\n7U3Xr9uFtP9T1B4eMapkM5llQzESd2X9pMSyhjmRiEeDWOjTG25xLqOdfXWc\r\nOcD/pSRmWE1an6ghmdQUDydqDTbPCX00WCTyMAJTsEWA0rHREnav+ChcABB9\r\nBmSwojpRXgTaSWKwMytMWEnLzQVxA4+izGPl6D/SRQKcFFyEpcz9X/JsJVI0\r\nYGvI34KltwCsg0hUzVSS8RUcfpITLr7Y38ic8VpXX1GFxhH2Eb+W701W6V0D\r\nW6Nln3wjh6PBjuS6swOwAOxnlvlXQw3zvlQwUWaQ6HnwfHuBAw7cZQz4OFiK\r\n3CXABIfQnn5l1T8pC1tSUnu+LF+YHgUsLuCjmQNcAtGFCDxkFyQk5wsCoqPw\r\nDJfKCdgxswcYXwvmEymKumyB04IKQfC5+RIVBBek9cDdmwt3GbSXeJkhEDcV\r\ntqjAOUsYLbQBrMfltK5RT9Yf2dawxcAIWl7Ldsl09vt9KYMLCF00M/BkVZ02\r\nLTjFWdW/RzfYXrBZvyonYbUqNPvOovG7CVc=\r\n=6HIY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7ejjsfaT6Htwbj3mCznzzzam4UewxZ7ldOdyyxBV9GAIhAJJosn3xtcPkasfAwHqXdsiL20/mfo39snxloDqvagqO"}]},"_npmUser":{"name":"openfunction","email":"openfunction@kubesphere.io"},"directories":{},"maintainers":[{"name":"openfunction","email":"openfunction@kubesphere.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/functions-framework_0.3.5_1646103753704_0.24416077510651601"},"_hasShrinkwrap":false,"deprecated":"this package has been deprecated"},"0.3.6":{"name":"@openfunction/functions-framework","version":"0.3.6","description":"FaaS (Function as a service) framework for writing portable Node.js functions","engines":{"node":">=10.0.0"},"repository":{"type":"git","url":"git+https://github.com/openfunction/functions-framework-nodejs.git"},"main":"build/src/index.js","types":"build/src/index.d.ts","exports":{".":"./build/src/index.js","./testing":"./build/src/testing.js"},"dependencies":{"@openfunction/functions-framework":"0.3.6","body-parser":"^1.18.3","cloudevents":"^5.3.2","express":"^4.16.4","minimist":"^1.2.5","on-finished":"^2.3.0","read-pkg-up":"^7.0.1","semver":"^7.3.5"},"scripts":{"test":"mocha build/test --recursive","build":"npm run clean && npm run compile","conformance":"./run_conformance_tests.sh","check":"gts check","clean":"gts clean","compile":"tsc -p .","fix":"gts fix","docs":"api-extractor run --local --verbose","watch":"npm run compile -- --watch","prepare":"npm run build","pretest":"npm run compile"},"bin":{"functions-framework":"build/src/main.js","functions-framework-nodejs":"build/src/main.js"},"author":{"name":"OpenFunction"},"license":"Apache-2.0","devDependencies":{"@microsoft/api-extractor":"^7.18.20","@types/body-parser":"1.19.2","@types/express":"4.17.13","@types/minimist":"1.2.2","@types/mocha":"9.0.0","@types/node":"14.18.11","@types/on-finished":"2.3.1","@types/semver":"^7.3.6","@types/sinon":"^10.0.0","@types/supertest":"2.0.11","gts":"3.1.0","mocha":"9.1.2","pack-n-play":"^1.0.0-2","sinon":"^12.0.0","supertest":"6.1.6","typescript":"^4.5.5"},"gitHead":"c1caef9727fc0137b8e339f98f8ec69e1d30d816","bugs":{"url":"https://github.com/openfunction/functions-framework-nodejs/issues"},"homepage":"https://github.com/openfunction/functions-framework-nodejs#readme","_id":"@openfunction/functions-framework@0.3.6","_nodeVersion":"17.6.0","_npmVersion":"8.5.2","dist":{"integrity":"sha512-V8ONTJHkLzgyCQSQsNNJi0N4i0cwkF0C1OAZi0RKMWxakCfcYTg6IbtOvFbYmNhQG1xk1BHOJEDIRHW5WXzsCw==","shasum":"6d6cca57beea1a9ff76510c17951b132d7f94f4c","tarball":"https://registry.npmjs.org/@openfunction/functions-framework/-/functions-framework-0.3.6.tgz","fileCount":35,"unpackedSize":102197,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHb8dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGrg//d6hXhSpyA5s/R1OI1BI+yTplmg6H09myLyRZ+BFH5bsIudnP\r\npcP5JuyOEYgwdMrE1HluHdq5dHiZpa40hS3yp2wdgOWFeEfVAfnY+UyZ8o2z\r\nr+E6ujK2ZY7w1uopL1kAu78uBTqXfTj0o8mWHCcuBJ3Gsa4R9aDSLrbe8w40\r\n9bhlDoNbNLkQ/oytpUPjMiAjfIdDSPSmYfmsavQbEvehn6Gkx8aMc0qDsO0k\r\ni5awt/AVWsd0liLZ6dxOgbjI2z3/5wkj7LUOPLuHQYUW+DQJ+sY7rgAVhIdj\r\ncloz5QB9cgKmlcUW66slX7L6KDGGwDqqvI5xQ3Vd14xzDiwgK1kviszHn7+8\r\nHxGYlCJ5ebz8q67LBo+wWeBgJdP8m207MCj4p86jljxP6XYE+k8l8hB6xUOB\r\nacf7v/BTmEDTJVUTtmYwlSSj1+UE4d4pSVT06GP757Wy0kxNCuRt29GUAWUi\r\nUzrgw8JoCgdB5vRWUIeTwHOhLWjnrtscEHc0XovAroUkj+oluH6R5saDoJNj\r\nzWV+cPeXYcH6ILspIxj43P0f37+sq2VVuj4c2VCUb7ED8AS/Jlr4QR/hvD2K\r\nDwcvgUbZf6exQNapWifyeah/GUpu/nos4mpwqEIJXqhhddGc5p0KjB6fbpMm\r\n8O54h3uPXAZzzJHi85mIbgs5KFeJy6/zmTE=\r\n=nhti\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqWeJR9w/9AbhO6nc+pHgyZEWXKzbfqP/tsF3gJB12twIhANYDCS4/ipR83n7x3ntzhPpRBulXWTh6NqHt8fwGwWiD"}]},"_npmUser":{"name":"openfunction","email":"openfunction@kubesphere.io"},"directories":{},"maintainers":[{"name":"openfunction","email":"openfunction@kubesphere.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/functions-framework_0.3.6_1646116637342_0.8782626153249329"},"_hasShrinkwrap":false},"0.4.1":{"name":"@openfunction/functions-framework","version":"0.4.1","description":"FaaS (Function as a service) framework for writing portable Node.js functions","engines":{"node":">=13.0.0"},"repository":{"type":"git","url":"git+https://github.com/openfunction/functions-framework-nodejs.git"},"main":"build/src/index.js","types":"build/src/index.d.ts","exports":{".":"./build/src/index.js","./testing":"./build/src/testing.js"},"dependencies":{"body-parser":"^1.18.3","cloudevents":"^5.3.2","dapr-client":"^2.1.0","debug":"^4.3.4","express":"^4.16.4","express-interceptor":"^1.2.0","lodash":"^4.17.21","minimist":"^1.2.5","on-finished":"^2.3.0","read-pkg-up":"^7.0.1","semver":"^7.3.5"},"scripts":{"test":"cross-env DEBUG=common:*,ofn:* mocha build/test -t 60000 --recursive --exit","build":"npm run clean && npm run compile","conformance":"./run_conformance_tests.sh","check":"gts check","clean":"gts clean","compile":"tsc -p .","fix":"gts fix","docs":"npm run compile && api-extractor run --local --verbose","watch":"npm run compile -- --watch","prepare":"npm run build","pretest":"npm run compile"},"bin":{"functions-framework":"build/src/main.js","functions-framework-nodejs":"build/src/main.js"},"author":{"name":"OpenFunction"},"license":"Apache-2.0","devDependencies":{"@microsoft/api-extractor":"^7.18.20","@types/body-parser":"1.19.2","@types/debug":"^4.1.7","@types/express":"4.17.13","@types/lodash":"^4.14.179","@types/minimist":"1.2.2","@types/mocha":"9.0.0","@types/node":"14.18.11","@types/on-finished":"2.3.1","@types/semver":"^7.3.6","@types/shelljs":"^0.8.11","@types/sinon":"^10.0.0","@types/supertest":"2.0.11","aedes":"^0.46.3","concurrently":"^7.0.0","cross-env":"^7.0.3","env-cmd":"^10.1.0","gts":"^3.1.0","mocha":"9.1.2","pack-n-play":"^1.0.0-2","shelljs":"^0.8.5","sinon":"^12.0.0","supertest":"6.1.6","typescript":"^4.5.5","wait-on":"^6.0.1"},"gitHead":"f102e7eae1dc990c23a0ace82b9911b49edf0065","bugs":{"url":"https://github.com/openfunction/functions-framework-nodejs/issues"},"homepage":"https://github.com/openfunction/functions-framework-nodejs#readme","_id":"@openfunction/functions-framework@0.4.1","_nodeVersion":"16.14.0","_npmVersion":"8.7.0","dist":{"integrity":"sha512-+R1a8wyGCeTZi5PqfPTUeJYlaYk2kshy2yhOwTDgAYnxWemjzlZV2VIOKgY7/CqYQRYjHGGtuOkAV4zf9we22A==","shasum":"f6f7464a3db8c6a6b4ab5706ddbe28387a14fd0c","tarball":"https://registry.npmjs.org/@openfunction/functions-framework/-/functions-framework-0.4.1.tgz","fileCount":43,"unpackedSize":117938,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFoL32aVX0PbZAYOhvHqxc1OTqoWXyNa0OfjYr4mNFBbAiA4CVd2ISokQY+E7hyRk3aUA0hi9oGPIsltqzkA2IWixg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiW80bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxNQ/+O6M2YiGH+zHiUleXxe1zX1T1GHQ+ea5E0BB1mzzaorWdLkv4\r\n1SDUYSSBbHBbYwjQ0sqIPkfXfrL66staWci4PczWpo0qzlnqowQea9HaXniz\r\npbHzC3H2BRG1ACi1up/gkMbBrMyoAgA6ddNbQZUwagmLljVB+8MgKK3HZ81w\r\ndnpRUrnfmzmrPDgMNxqikopMBV41G0+NHATeSAXkdGrBGUQkb2hlpBPW0q6F\r\nHh37tPckcKdclezdZJic+MufpZsg0OOO74WSQt8dQvNSwx7cRviJHyJeECbK\r\nRpPGMFy1HGGeE3g8NfnwrAdPsX3E93S9WvsrjziA/VuUtQNMDc6TEUoip/bD\r\nkJVZgUekDjtVGLrn3r/C46I1UxEtXjEj1p/gzGZw1wkcFK+/o+9M3wxepfdH\r\nJSKheGFluDC6rJlqqcYakQ2gYzftGFZRvtRpKrxx/Zuz6RY14qRq1HggTWyb\r\n0wvE8fUIdzDdfu0oBNKB3bfN7LoN1ZmS64hJF/a6UoEHBBD7U16YnClMczPm\r\nbtII+dBdLpwTrqSNP6bF1D9oNlLzCMPHDbc5hcNp5+K42z8KtdV/z/fEaVfG\r\nKO1DdYBIuXla0gwiZU+ny0n87xBeig9iyth3z3El4V/8zilRC5hEqr1CYik2\r\nS+Er8pOLVf761CX1aZ5YG1c+o0MRsnprQQA=\r\n=PHL7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"openfunction","email":"openfunction@kubesphere.io"},"directories":{},"maintainers":[{"name":"openfunction","email":"openfunction@kubesphere.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/functions-framework_0.4.1_1650183451491_0.9442241060873906"},"_hasShrinkwrap":false},"0.5.0":{"name":"@openfunction/functions-framework","version":"0.5.0","description":"FaaS (Function as a service) framework for writing portable Node.js functions","engines":{"node":">=13.0.0"},"repository":{"type":"git","url":"git+https://github.com/openfunction/functions-framework-nodejs.git"},"main":"build/src/index.js","types":"build/src/index.d.ts","exports":{".":"./build/src/index.js","./testing":"./build/src/testing.js"},"dependencies":{"@dapr/dapr":"^2.2.1","body-parser":"^1.18.3","cloudevents":"^6.0.1","debug":"^4.3.4","express":"^4.16.4","express-interceptor":"^1.2.0","lodash":"^4.17.21","minimist":"^1.2.5","on-finished":"^2.3.0","read-pkg-up":"^7.0.1","semver":"^7.3.5"},"scripts":{"test":"cross-env DEBUG=common:*,ofn:* mocha build/test -t 60000 --recursive --exit","build":"npm run clean && npm run compile","check":"gts check","clean":"gts clean","compile":"tsc -p .","fix":"gts fix","docs":"npm run compile && api-extractor run --local --verbose","watch":"npm run compile -- --watch","prepare":"npm run build","pretest":"npm run compile"},"prepush":["build","test"],"bin":{"functions-framework":"build/src/main.js","functions-framework-nodejs":"build/src/main.js"},"author":{"name":"OpenFunction"},"license":"Apache-2.0","devDependencies":{"@microsoft/api-extractor":"^7.24.0","@types/body-parser":"1.19.2","@types/debug":"^4.1.7","@types/express":"4.17.13","@types/lodash":"^4.14.179","@types/minimist":"1.2.2","@types/mocha":"9.1.1","@types/node":"14.18.11","@types/on-finished":"2.3.1","@types/semver":"^7.3.6","@types/shelljs":"^0.8.11","@types/sinon":"^10.0.0","@types/supertest":"2.0.11","aedes":"^0.47.0","concurrently":"^7.0.0","cross-env":"^7.0.3","env-cmd":"^10.1.0","gts":"^3.1.0","mocha":"10.0.0","pack-n-play":"^1.0.0-2","pre-push":"^0.1.2","shelljs":"^0.8.5","sinon":"^14.0.0","supertest":"6.2.3","typescript":"^4.5.5","wait-on":"^6.0.1"},"gitHead":"a0fb6dfb3112b40d559c51e62e714cdd640b94f2","bugs":{"url":"https://github.com/openfunction/functions-framework-nodejs/issues"},"homepage":"https://github.com/openfunction/functions-framework-nodejs#readme","_id":"@openfunction/functions-framework@0.5.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-PgB01dMGCXpLnDIhuXHTPxJromA+TfA1IrG9AzhOaM7GZnO5inYitThTAQD7KTfMssY841YBykkYkbA/Xw/PyQ==","shasum":"b2aff1f83168328bc4f10ca2a5f5fbd0f379bf0c","tarball":"https://registry.npmjs.org/@openfunction/functions-framework/-/functions-framework-0.5.0.tgz","fileCount":43,"unpackedSize":124989,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQi+gmidsRJ97gblce1V/I3t/gCAXER0dPrxR9LGbTQwIhALiWP5J1cREU2OjUIz3lXMh7eICLoOFIBFyqB9fewvvF"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJikNOBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmprtA/+KXCJ8lVOKrZJSjFBHMph2UVu9cn2UZlSuUa4MOaXFOQRAuqb\r\nuq+DVCYdnNdL2tnDZCt47G7VH1lMce1d0VE3Bz74QNEJK+8r/h25b5bmW+r/\r\n7uijjoVjED8kYLiuGIsgTtsHNnyBaAHxKD0/w+QERrieFquIHfmAgMb4AhZE\r\nssiBNz4PHKqs1ezfK2r8Z4gAKVi/5M0yvLOOZK0kJUS5ok1w5TUG2O43JjXm\r\nSvZZAkSqm6FixgCB6TnaeTFLrkLjSKExgJaaUWwEbbQ7chb7u01rZ3cYwg6g\r\nuHOUF5y4l/8SsTGoG9h2elg8ClhJiSOQFI4oacueS3fGE5VWSmgFvXb8qaOy\r\nKROXp1XwV/bE1O955eyjbo2HpOyTWdUvf890J5eh4ewynNB5xg0fMFvgNoYN\r\nI0VTfcx7Z38G+eTRQ5q816U1PCkB2bjOKO7yEieF2oGt25Gx1WIPBLHz1B+Z\r\n4u5DyBveGw8ePe6w0n/9e6oc0MaZSFiAzYhNU28wKmK1dbMQGWW4lfl02hAg\r\nnLvjYn4v/KbPkw0+xVkvVMJyDcmU25trWt2Eq1Ve39A0aQ4Lspd2kxTa6J42\r\nnuBxErJTMBmTCzTh1q4PHv1dMrXN7nIt5/iVDgz/MIE89guD2/AzNKzN7Lhl\r\nsEbM0ugHDGXzvOP4ZJaVNg+Wh5xA8xMBCHw=\r\n=8nXe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"openfunction","email":"openfunction@kubesphere.io"},"directories":{},"maintainers":[{"name":"openfunction","email":"openfunction@kubesphere.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/functions-framework_0.5.0_1653658497628_0.5242467394082797"},"_hasShrinkwrap":false},"0.6.0":{"name":"@openfunction/functions-framework","version":"0.6.0","description":"FaaS (Function as a service) framework for writing portable Node.js functions","engines":{"node":">=13.0.0"},"repository":{"type":"git","url":"git+https://github.com/openfunction/functions-framework-nodejs.git"},"main":"build/src/index.js","types":"build/src/index.d.ts","exports":{".":"./build/src/index.js","./testing":"./build/src/testing.js"},"dependencies":{"@dapr/dapr":"2.4.2","body-parser":"^1.20.1","cloudevents":"^6.0.2","debug":"^4.3.4","express":"^4.18.1","express-interceptor":"^1.2.0","http-terminator":"^3.2.0","lodash":"^4.17.21","minimist":"^1.2.6","on-finished":"^2.4.1","read-pkg-up":"^7.0.1","semver":"^7.3.8","skywalking-backend-js":"^0.5.1"},"bin":{"functions-framework":"build/src/main.js","functions-framework-nodejs":"build/src/main.js"},"author":{"name":"OpenFunction"},"license":"Apache-2.0","gitHead":"5bdf64a027613786b2110cffdf9e1b93e31fd2d8","bugs":{"url":"https://github.com/openfunction/functions-framework-nodejs/issues"},"homepage":"https://github.com/openfunction/functions-framework-nodejs#readme","_id":"@openfunction/functions-framework@0.6.0","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-+ZdoewvcO3IlGAGGQygjrEFNRb/a07KzrjIcrsZ0/GAUupq+uIYD/Fg0xQ3bh0Cd2Msr/9faWSByhiCuj9S/dg==","shasum":"9da2e85ab4418d6823a0f4904eed26151021484f","tarball":"https://registry.npmjs.org/@openfunction/functions-framework/-/functions-framework-0.6.0.tgz","fileCount":49,"unpackedSize":155305,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHe9rWiLIbtRoZgGf15wtIONUpK6buEjEdNkk2kcdGcWAiEAiasX72wEz/6afa/AK6srBg287jbvq/KaDpBbZjAf5RY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjQYMtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7tw/+Nro5TDL+/yLeUh5rfw5m11jJqZ6yjpXyT7yWZWrE4TFgy57F\r\nJVxjMqwAEKgs425/BHUmr4ljaPqPJGnf0b+ugkcJSoQVq+vA9diffelukt6u\r\nrpGxELNpifG6ypzHDw6dSjwVETn6WdgwA9ObrkvVxpv/+eim9EU9MGGwUaBx\r\na/t/NRF9MOdZpuCqtf335bb9E6JSux1yAruj4T5GC10ZBnaUoZ5zVNdBpQSO\r\nEWTYMn813Jvs8t6adg8NNHk3UWo6MAAAfg3pCq3P7lJK0j2/pRYZSDydZzaU\r\naMNw6tO8bgaTY09f5zpPDSC3b+rgfGdTALyI9TF3u89RtjaitZI8MTJPnySW\r\nvHPDbH+dLvIr+cMJjydGCQYj0AeYPK/kqCqSU/d5SYhzNjzqb7yI8Gs2xtHi\r\n8wGaS7HkLOImVliiuk6dsW7ya6xTBAMQFh/SFSpKcgr88QQHVA68X5BEM0Rf\r\nzbr8lm83qFHozwT7wchYAmnBed8UyKgevUIMuIgyoD4TSJVd8IeVLW0GEqrF\r\ni0GaiBB4aqTp8QdQ2H5uHT2HqiOvR5XQbiMJ4wJXZCmVttRj3vtyipqudgxk\r\n9oKvK7OT4NGCRMyik8sQcO2HCdo7tcDoXukbWsHcJmJOcaR2pNrqbr77YDQt\r\nMGx0JahxHXKztOx+WjxvWg1DufEvys96r40=\r\n=02aK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"openfunction","email":"openfunction@kubesphere.io"},"directories":{},"maintainers":[{"name":"openfunction","email":"openfunction@kubesphere.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/functions-framework_0.6.0_1665237804790_0.23987866414103287"},"_hasShrinkwrap":false},"0.6.1":{"name":"@openfunction/functions-framework","version":"0.6.1","description":"FaaS (Function as a service) framework for writing portable Node.js functions","engines":{"node":">=13.0.0"},"repository":{"type":"git","url":"git+https://github.com/openfunction/functions-framework-nodejs.git"},"main":"build/src/index.js","types":"build/src/index.d.ts","exports":{".":"./build/src/index.js","./testing":"./build/src/testing.js"},"dependencies":{"@dapr/dapr":"2.5.0","body-parser":"^1.20.1","cloudevents":"^6.0.2","debug":"^4.3.4","express":"^4.18.2","express-interceptor":"^1.2.0","http-terminator":"^3.2.0","lodash":"^4.17.21","minimist":"^1.2.7","on-finished":"^2.4.1","read-pkg-up":"^7.0.1","semver":"^7.3.8","skywalking-backend-js":"^0.5.1"},"bin":{"functions-framework":"build/src/main.js","functions-framework-nodejs":"build/src/main.js"},"author":{"name":"OpenFunction"},"license":"Apache-2.0","gitHead":"b3367c680b9f96898391bf80d90f9556f15792f1","bugs":{"url":"https://github.com/openfunction/functions-framework-nodejs/issues"},"homepage":"https://github.com/openfunction/functions-framework-nodejs#readme","_id":"@openfunction/functions-framework@0.6.1","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-aNYFgdI+tc+7wpaY4SA+1t9npBU66wiY/1dFDgcAlGbdIH7cCZfIqKHUWXZD0EqErABi1gXvFafjMmEoZTdjEQ==","shasum":"a78d5108ab935c197f36b681aa99cf0f8c4e8a4f","tarball":"https://registry.npmjs.org/@openfunction/functions-framework/-/functions-framework-0.6.1.tgz","fileCount":49,"unpackedSize":155623,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIECQmSxfgxgyf8rWJTucW8eNbWbwDY84tdEIKmHIdgd+AiEA7BiIuT0pvGBwOizKk3G3t1yYO3S5Hp7h7VS9vOpbZBM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjY987ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqo9w//eLUugDiY5rxfFAmlMuqzb/cb8BaF7xlXErfdhYBzR/EZJeG4\r\nLQ1GjYVGNbFFs4FxBq2p7dUttK9/T9cWqb5dLFnAm8sdWOxCHXziMBJiigAt\r\nYdMaQNrqiI+a+JVY/1xGjw7HC3Ac4gnTV3+Ostp8XpMa3gizHZKbRhMWew1F\r\n//BXNPKOUpzH9hgb4jD/eIaS9EyDaZi7uyXOThReOGB4hvmVdtfVu8yrctML\r\naZGkol3qxG8fLgpulP72oxhZvCHHCNt2RYGvwe7JXE2hSgibt0OqsxFJeLaY\r\ntHkxj4xYfR6rEZeDD5aIZ3x0QkLgnnpWFL/W0nYcrfp17iX1L90VE9oKpUlb\r\nFFXxYYeTOnD+M+caNWDmdQ4lPrVOO/+GQvTP6AZLyIMZ76pDg3fkIan4MI2d\r\n6dgz/pAc1IboF/waws8RErHXPGpPyqYsmJMBAX8G2rKD63djw4mVx0vgxvV2\r\nOhzl696G3zicIY0pVrAU1mq6Q8Z3wsAZRk1jffcv6gKaA+izWnFtJ0cEq41L\r\n7PNoF9TSg53QRmeFRnREt/ZaFcoyTvpRxxNTIm9MUMFitxiiKiRds4MwUJlJ\r\njCqqltn2JMxHijIp1JVfXRdRyugiwri7odNHZ9aIcBciSRJDYO+1BG5qkE6S\r\nshJXDYBzfvh7iWMDfjdhAAM93ENzKjd6AG0=\r\n=H5a+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"openfunction","email":"openfunction@kubesphere.io"},"directories":{},"maintainers":[{"name":"openfunction","email":"openfunction@kubesphere.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/functions-framework_0.6.1_1667489595106_0.732954194822186"},"_hasShrinkwrap":false}},"maintainers":[{"name":"openfunction","email":"openfunction@kubesphere.io"}],"description":"FaaS (Function as a service) framework for writing portable Node.js functions","homepage":"https://github.com/openfunction/functions-framework-nodejs#readme","repository":{"type":"git","url":"git+https://github.com/openfunction/functions-framework-nodejs.git"},"author":{"name":"OpenFunction"},"bugs":{"url":"https://github.com/openfunction/functions-framework-nodejs/issues"},"license":"Apache-2.0","readme":"# Functions Framework for Node.js\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\n[![npm version](https://img.shields.io/npm/v/@openfunction/functions-framework.svg)](https://www.npmjs.com/package/@openfunction/functions-framework) [![npm downloads](https://img.shields.io/npm/dm/@openfunction/functions-framework.svg)](https://npmcharts.com/compare/@openfunction/functions-framework?minimal=true)\n\n[![Node unit CI][ff_node_unit_img]][ff_node_unit_link] [![Node lint CI][ff_node_lint_img]][ff_node_lint_link]\n\n![Alt](https://repobeats.axiom.co/api/embed/988db7b27f5120583d096d8131fd26626c349fac.svg \"Repobeats analytics image\")\n\n---\n\n> This is OpenFunction's Node.js Functions Framework forked from [GCP functions-framework-nodejs](https://github.com/GoogleCloudPlatform/functions-framework-nodejs).\n\nAn open source FaaS (Function as a Service) framework based on [Express](https://expressjs.com/)\n and [Restana](https://github.com/BackendStack21/restana) for writing portable sync and async Node.js functions.\n\nThe Functions Framework lets you write lightweight functions that run in many different environments, including:\n\n* [OpenFunction](https://github.com/OpenFunction/OpenFunction)\n* [Knative](https://github.com/knative/)-based environments\n* [Dapr](https://dapr.io/)-based environments\n* [Google Cloud Functions](https://cloud.google.com/functions/)\n* [Cloud Run](https://cloud.google.com/run/) and [Cloud Run for Anthos](https://cloud.google.com/anthos/run)\n* Your local development machine\n\nGenerally speaking, the framework allows you to go from:\n\n```js\n/**\n * Send \"Hello, World!\"\n * @param req https://expressjs.com/en/api.html#req\n * @param res https://expressjs.com/en/api.html#res\n */\nexports.helloWorld = (req, res) => {\n  res.send('Hello, World!');\n};\n```\n\nTo:\n\n```sh\ncurl http://my-url\n# Output: Hello, World!\n```\n\nAll without needing to worry about writing an HTTP server or complicated request handling logic.\n\n> Watch [this video](https://youtu.be/yMEcyAkTliU?t=912) to learn more about the Node Functions Framework.\n\n## Features\n\n* Spin up a local development server for quick testing\n* Invoke a function in response to a request\n* Listen and respond to the events bridged from Dapr system\n* Automatically unmarshal events conforming to the [CloudEvents](https://cloudevents.io/) spec\n* Portable between serverless platforms\n\n## Installation\n\nAdd the Functions Framework to your `package.json` file using `npm`.\n\n```sh\nnpm install @openfunction/functions-framework\n```\n\n## Quickstarts\n\n### Quickstart: \"Hello, World\" on your local machine\n\n1. Create an `index.js` file with the following contents:\n\n    ```js\n    exports.helloWorld = (req, res) => {\n      res.send('Hello, World');\n    };\n    ```\n\n1. Run the following command:\n\n    ```sh\n    npx @openfunction/functions-framework --target=helloWorld\n    ```\n\n1. Open <http://localhost:8080/> in your browser and see _Hello, World_.\n\n### Quickstart: Set up a new project\n\n1. Create a `package.json` file using `npm init`:\n\n    ```sh\n    npm init\n    ```\n\n1. Create an `index.js` file with the following contents:\n\n    ```js\n    exports.helloWorld = (req, res) => {\n      res.send('Hello, World');\n    };\n    ```\n\n1. Now install the Functions Framework:\n\n    ```sh\n    npm install @openfunction/functions-framework\n    ```\n\n1. Add a `start` script to `package.json`, with configuration passed via command-line arguments:\n\n    ```js\n      \"scripts\": {\n        \"start\": \"functions-framework --target=helloWorld\"\n      }\n    ```\n\n1. Use `npm start` to start the built-in local development server:\n\n    ```sh\n    npm start\n    ...\n    Serving function...\n    Function: helloWorld\n    Signature type: http\n    URL: http://localhost:8080/\n    ```\n\n1. Send requests to this function using `curl` from another terminal window:\n\n    ```sh\n    curl localhost:8080\n    # Output: Hello, World\n    ```\n\n### Quickstart: Build a Deployable Container\n\n1. Install [Docker](https://store.docker.com/search?type=edition&offering=community) and the [pack](https://buildpacks.io/docs/install-pack/) tool.\n\n2. Build a container from your function using the [Cloud Native Buildpacks](https://buildpacks.io/):\n\n    ```sh\n    pack build \\\n      --builder openfunction/builder-node:v2-16.13 \\\n      --env FUNC_TYPE=http \\\n      --env FUNC_NAME=helloWorld \\\n      my-first-function\n    ```\n\n3. Start the built function container:\n\n    ```sh\n    docker run --rm -p 8080:8080 -e NODE_ENV=dev my-first-function\n    # Output: Serving function...\n    ```\n\n    > NOTICE: `-e NODE_ENV=dev` is required to display \"Serving function...\", and you can also append `-e DEBUG=*` to display Express internal debug messages.\n\n4. Send requests to this function using `curl` from another terminal window:\n\n    ```sh\n    curl localhost:8080\n    # Output: Hello, World!\n    ```\n\n## Configure the Functions Framework\n\nYou can configure the Functions Framework using command-line flags or environment variables. If you specify both, the environment variable will be ignored.\n\n| Command-line flag  | Environment variable      | Description                                                                                                                                                                                                      |\n| ------------------ | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `--port`           | `PORT`                    | The port on which the Functions Framework listens for requests. Default: `8080`                                                                                                                                  |\n| `--target`         | `FUNCTION_TARGET`         | The name of the exported function to be invoked in response to requests. Default: `function`                                                                                                                     |\n| `--signature-type` | `FUNCTION_SIGNATURE_TYPE` | The signature used when writing your function. Controls unmarshalling rules and determines which arguments are used to invoke your function. Default: `http`; accepted values: `http` or `event` or `cloudevent` or `openfunction` |\n| `--source`         | `FUNCTION_SOURCE`         | The path to the directory of your function. Default: `cwd` (the current working directory)                                                                                                                       |\n\nYou can set command-line flags in your `package.json` via the `start` script.\nFor example:\n\n```js\n  \"scripts\": {\n    \"start\": \"functions-framework --target=helloWorld\"\n  }\n```\n\n## Run your function on Serverless platforms\n\n### Container environments based on Knative\n\nThe Functions Framework is designed to be compatible with Knative environments. Build and deploy your container to a Knative environment.\n\n### OpenFunction\n\n![OpenFunction Platform Overview](https://openfunction.dev/openfunction-0.5-architecture.png)\n\nBesides Knative function support, one notable feature of OpenFunction is embracing Dapr system, so far Dapr pub/sub and bindings have been support.\n\nDapr bindings allows you to trigger your applications or services with events coming in from external systems, or interface with external systems. OpenFunction [0.6.0 release](https://openfunction.dev/blog/2022/03/25/announcing-openfunction-0.6.0-faas-observability-http-trigger-and-more/) adds Dapr output bindings to its synchronous functions which enables HTTP triggers for asynchronous functions. For example, synchronous functions backed by the Knative runtime can now interact with middlewares defined by Dapr output binding or pub/sub, and an asynchronous function will be triggered by the events sent from the synchronous function.\n\nAsynchronous function introduces Dapr pub/sub to provide a platform-agnostic API to send and receive messages. A typical use case is that you can leverage synchronous functions to receive an event in plain JSON or Cloud Events format, and then send the received event to a Dapr output binding or pub/sub component, most likely a message queue (e.g. Kafka, NATS Streaming, GCP PubSub, MQTT). Finally, the asynchronous function could be triggered from the message queue.\n\nAsync function use below function signature which is quite difference from that of Express style sync function:\n\n```js\nfunction (ctx, data) {}\n```\n\n* `ctx`: OpenFunction [context](https://github.com/OpenFunction/functions-framework-nodejs/blob/master/src/openfunction/function_context.ts) object\n  * `ctx.send(payload, output?)`: Send `payload` to all or one specific `output` of Dapr Output [Binding](https://docs.dapr.io/reference/components-reference/supported-bindings/) or Pub [Broker](https://docs.dapr.io/reference/components-reference/supported-pubsub/)\n  * Notice that `ctx.send` CAN be invoked where necessary, when you have certain outgoing data to send\n* `data`: Data recieved from Dapr Input Binding or Sub Broker\n\nFor more details about async function and demo, please check out our [Node.js Async Function Quickstart](https://openfunction-talks.netlify.app/2022/202-node-async/).\n\n#### HTTP Trigger Async Function\n\nSync functions is triggered by HTTP request, so Dapr is not used in sync function input. Whenever there are functions output requirements, sync functions can also send output to Dapr output binding or pubsub components.\n\nHere is another function sample:\n\n* Users send a HTTP request to a [Knative Sync function](https://github.com/OpenFunction/samples/tree/main/functions/knative/with-output-binding).\n* This sync function handles the request and then send its output to Kafka through a Dapr Kafka output binding or pubsub component.\n* An [async function](https://github.com/OpenFunction/samples/tree/main/functions/async/bindings/kafka-input) is then triggered by this output event in Kafka (through a Dapr Kafka input binding or pubsub component)\n\n![HTTP Trigger Async Function](https://raw.githubusercontent.com/OpenFunction/samples/main/images/knative-dapr.png)\n\nNode.js Functions Framework also supports such use case, you can switch Express function signature to typical async style as below example indicates:\n\n```js\nasync function tryKnativeAsync(ctx, data) {\n  // Receive and handle data from HTTP request's body\n  console.log('Function should receive request: %o', data);\n\n  // Send output in async way via Dapr\n  await ctx.send(data);\n\n  // Use `ctx.res` object to deal with HTTP response\n  ctx.res.send(data);\n```\n\nRemember that you also need set command-line flags `--signature-type=openfunction`, for example in your `package.json` via the `start` script:\n\n```js\n  \"scripts\": {\n    \"start\": \"functions-framework --signature-type=openfunction --target=tryKnativeAsync\"\n  }\n```\n\n### Google Cloud Functions\n\nThe [Node.js 10 runtime on Google Cloud Functions](https://cloud.google.com/functions/docs/concepts/nodejs-10-runtime) is based on the Functions Framework. On Cloud Functions, the Functions Framework is completely optional: if you don't add it to your `package.json`, it will be installed automatically.\n\nAfter you've written your function, you can deploy it from your local machine using the `gcloud` command-line tool. [Check out the Cloud Functions quickstart](https://cloud.google.com/functions/docs/quickstart).\n\n### Cloud Run / Cloud Run for Anthos\n\nAfter you've written your function, added the Functions Framework and updated your `start` script in `package.json`, deploy it to Cloud Run with `gcloud run deploy`. Check out the [Cloud Run quickstart for Node.js](https://cloud.google.com/run/docs/quickstarts/build-and-deploy/nodejs).\n\nIf you want even more control over the environment, you can [deploy to Cloud Run for Anthos](https://cloud.google.com/anthos/run/docs/quickstarts/prebuilt-deploy-gke). With Cloud Run for Anthos, you can run your function on a GKE cluster, which gives you additional control over the environment (including use of GPU-based instances, longer timeouts and more).\n\n## Enable CloudEvents\n\nThe Functions Framework can unmarshall incoming [CloudEvents](http://cloudevents.io) payloads to a `cloudevent` object. It will be passed as an argument to your function when it receives a request. Note that your function must use the `cloudevent`-style function signature:\n\n```js\nconst functions = require('@openfunction/functions-framework');\n\nfunctions.cloudEvent('helloCloudEvents', (cloudevent) => {\n  console.log(cloudevent.specversion);\n  console.log(cloudevent.type);\n  console.log(cloudevent.source);\n  console.log(cloudevent.subject);\n  console.log(cloudevent.id);\n  console.log(cloudevent.time);\n  console.log(cloudevent.datacontenttype);\n});\n```\n\nLearn how to use CloudEvents in this [guide](docs/cloudevents.md).\n\n## Advanced Docs\n\nMore advanced guides and docs can be found in the [`docs/` folder](docs/).\n\n## Contributing\n\nContributions to this library are welcome and encouraged. See [CONTRIBUTING](CONTRIBUTING.md) for more information on how to get started.\n\n[ff_node_unit_img]: https://github.com/openfunction/functions-framework-nodejs/workflows/Node.js%20Unit%20CI/badge.svg\n[ff_node_unit_link]:  https://github.com/openfunction/functions-framework-nodejs/actions?query=workflow%3A\"Node.js+Unit+CI\"\n[ff_node_lint_img]: https://github.com/openfunction/functions-framework-nodejs/workflows/Node.js%20Lint%20CI/badge.svg\n[ff_node_lint_link]:  https://github.com/openfunction/functions-framework-nodejs/actions?query=workflow%3A\"Node.js+Lint+CI\"\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://github.com/YADROOKIE\"><img src=\"https://avatars.githubusercontent.com/u/43526965?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>MachaYAD</b></sub></a><br /><a href=\"https://github.com/OpenFunction/functions-framework-nodejs/commits?author=YADROOKIE\" title=\"Code\">💻</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!","readmeFilename":"README.md"}