0.2.3 • Published 2 years ago

alifc v0.2.3

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

Minimal Aliyun FC Utility

For those who prefer a simpler http client than @alicloud/fc2.

Install

npm i alifc

Usage

HttpBase is wrapper of aixos that set the '/version/proxy/' baseURL for you.
HttpFunc also sign the request to pass function Authorization.

const { HttpBase, HttpFunc } = require('alifc')
const func = new HttpFunc(
  accessKey,
  accessKeySecret
  endpoint
)

func.get('/service/func') // axios Promise

Test requirements

  • A fc service named 'test'
  • 2 functions under 'test:
    • foo: which use function authorization
    • bar: which accept anonymous request
  • 3 environment variables (or set them via .env):
    • FC_ACCESS_KEY: accessKey,
    • FC_ACCESS_KEY_SEC: accessKeySecret,
    • FC_ACCESS_EP: endpoint

Reference

0.2.3

2 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago