Serverless Toolboxs
Serverless toolbox
Install
npm i serverless-tools
Examples
httpless
A more node-style way to write your handler functions.
const httpless = exportshello = statusCode: 200 headers: 'content-type': 'text/plain' body: 'Hello gays! -- Provide by aws'
microless
A micro-style way to write your handler functions.
const microless = const json send sendError createError = microless exportshello = exportsok = exportsauth = exportsdownload =
probe
Generate a report for serverless function runtime environment.
const probe = console os: process: env: 'aws-sdk':
evaluate
Evaluate runtime feature and guess possible env.
const evaluate = console provider: 'aws' nodeEnv: 'production'
Write evaluate envs into process.env
. This side effect happend immediately.
console ... PROVIDER: 'aws' NODE_ENV: 'production' ...