Name: webtask-runtime
Owner: Auth0
Description: Runtime components of the webtask.io sandbox
Created: 2016-04-27 20:41:34.0
Updated: 2018-04-06 18:28:25.0
Pushed: 2017-10-04 14:02:56.0
Homepage: null
Size: 92
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A series of components that replicate the behaviour of the runtime component of https://webtask.io.
Given a sample webtask:
tion webtask(ctx, cb) {
return cb(null, {
secret: ctx.secrets.hello,
});
Sample of simulating a request to a webtask function:
t Assert = require('assert');
t Runtime = require('webtask-runtime');
ime.simulate(webtask, { secrets: { hello: 'world' }}, function (res) {
Assert.ok(res.statusCode === 200);
Assert.ok(typeof res.payload === 'string');
Sample of creating a local http server that runs a webtask:
t Assert = require('assert');
t Runtime = require('webtask-runtime');
t server = Runtime.createServer(webtask, { secrets: { hello: 'world' }});
er.listen(8080);
TODO
Just clone the repo, run npm install
and then hack away.
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.
MIT
Auth0 helps you to: