JSPM

saasify-faas-sdk

1.20.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q36099F
  • License MIT

HTTP client for invoking Saasify FaaS.

Package Exports

  • saasify-faas-sdk

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (saasify-faas-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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