npm.io
1.0.5 • Published 2 years ago

@node-lambdas/client

Licence
MIT
Version
1.0.5
Deps
0
Size
3 kB
Vulns
0
Weekly
0

Node Lambdas Client

Node/web interface to use with jsfn.run API.

Usage

Here's an example on how to convert between JSON to YAML and then base64 using a web function:

// JSON > YAML > base64
const json = JSON.stringify({ hello: 'world' });
const encode = pipe({ name: 'yaml', action: 'encode' }, { name: 'base64', action: 'encode' });
const response = await encode(json);

console.log(await response.text());