saasify-faas-sdk

1.20.0 • Public • Published

Saasify Logo

saasify-faas-sdk

HTTP client for invoking Saasify FaaS.

NPM Build Status JavaScript Style Guide

Install

npm install --save saasify-faas-sdk

Usage

const SaasifySDK = require('saasify-faas-sdk')
const sdk = new SaasifySDK()
 
const helloWorldUrl = 'https://ssfy.sh/dev/hello-world'
 
const res = await sdk.post(helloWorldUrl, {
  data: { name: 'Nala' }
})
 
{
  "body": "Hello Nala!",
  "contentType": "application/json",
  "response": { /* raw axios response */ }
}

TODO

  • use nock in unit tests to ensure robustness and enable offline testing
  • change stateful way the auth token is currently handled

License

MIT © Saasify

Dependents (2)

Package Sidebar

Install

npm i saasify-faas-sdk

Weekly Downloads

2

Version

1.20.0

License

MIT

Unpacked Size

9.69 kB

Total Files

7

Last publish

Collaborators

  • fisch0920