0.2.1 • Published 6 years ago

twilio-runtime-utils v0.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Twilio runtime utils

Simple utilities for twilio runtime functions.

Reference

r

Signature: (path: string, prefix: string = "vendor-") -> any

Simple replacement for node's standard require function that automatically uses twilio assets when run from twilio runtime otherwise defaults to require().

wrapRouteHandler

Signature: (routeHandler: AsyncFunction) -> TwilioFunction

Wraps an async function that takes an object as parameter Returns a function with signature (ctx: {}, event: {}, callback: Function) -> void that can be used as twilio runtime event handler.

addCorsHeaders

Signature: (response: Twilio.Response, origin: string) -> Twilio.Response

Simple function to add CORS headers for given origin and response.

0.2.1

6 years ago

0.2.0

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago