New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

wayscript

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wayscript

WayScript gives you flexible building blocks to seamlessly integrate, automate and host tools in the cloud.

latest
Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
62
-37.37%
Maintainers
4
Weekly downloads
 
Created
Source

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);

Secrets

To create a new secret, or update an existing one:

const wayscript = require("wayscript");
wayscript.secret_manager.setSecret("my_key", "my_secret_value");

More use cases in can be found here

Contributing guide here

Keywords

wayscript

FAQs

Package last updated on 06 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts