fun:ƒun-本地无服务器功能λ开发运行时

时间:2021-05-02 15:50:56
【文件属性】:
文件名称:fun:ƒun-本地无服务器功能λ开发运行时
文件大小:119KB
文件格式:ZIP
更新时间:2021-05-02 15:50:56
TypeScript ƒun 本地无服务器功能λ开发运行时。 程序化的。 TypeScript API公开给触发器调用。 提供者不可知。 已计划AWS Lambda +其他云提供商。 运行时不可知。 节点,运行,Python和自定义运行时API。 平台不可知。 功能可以本地执行(例如macOS)或通过Docker执行。 需要零设置。 un获取必要的运行时文件(例如node )。 例子 给定这样的Lambda函数: // index.js exports . handler = function ( event , context , callback ) { callback ( null , { hello : 'world' } ) ; } ; 您可以使用以下代码在本地调用此函数: const { createFunction } = require ( '@zeit/fun' ) ;
【文件预览】:
fun-master
----.gitignore(209B)
----package.json(2KB)
----src()
--------runtimes()
--------deferred.ts(425B)
--------install-node.ts(2KB)
--------install-python.ts(1KB)
--------unzip.ts(3KB)
--------errors.ts(747B)
--------once.ts(471B)
--------providers()
--------index.ts(4KB)
--------runtime-server.ts(5KB)
--------runtimes.ts(6KB)
--------types.ts(2KB)
----tsconfig.json(297B)
----util()
--------python()
----.github()
--------workflows()
----README.md(4KB)
----example()
--------dump()
----.yarnrc(15B)
----test()
--------functions()
--------pkg-invoke.js(514B)
--------test.ts(17KB)
--------go-build.sh(175B)
----.editorconfig(715B)
----yarn.lock(155KB)

网友评论