Neoclassical Philosophic Musings

    wayscript

    0.2.1 • Public • Published

    wayscript-js

    Triggers

    HTTP Trigger

    Send an http trigger response:

    const wayscript = require("wayscript")
    let data = {"hello": "world"}
    let headers = {"x-my-custom-header": "hello"}
    let status_code = 200
    response = wayscript.http_trigger.sendResponse(data, headers, status_code)
    console.log(response)
    

    Context

    Access the event which triggered an execution:

    const wayscript = require("wayscript")
    event = wayscript.context.getEvent();
    console.log(event);
    

    Install

    npm i wayscript

    DownloadsWeekly Downloads

    427

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    7.74 kB

    Total Files

    9

    Last publish

    Collaborators

    • jeffbuswell
    • jonathanwmeier
    • jdhayford