ali-acm

1.0.0 • Public • Published

ali-acm

Aliyun ACM sdk for Node.js, extend from @alicloud/acm-sdk.

Install

$ npm i ali-acm --save

Usage

const AcmClient = require('ali-acm')
 
const acmClient = new AcmClient({
  endpoint: 'acm.aliyun.com',
  namespace: '56d00178-1d0b-488a-9bc6-1432c626ae42',
  accessKey: 'xxx',
  secretKey: 'xxx',
  requestTimeout: 6000,
  // json: false // default `true`
})
 
// 去acm控制台创建一条测试配置:
// group: myGroup
// dataId: myDataId
// {
//   "obj1": {
//     "obj2": {
//       "key": 0
//     }
//   }
// }
 
// 去acm控制台修改这个myGroup+myDataId的配置,如修改obj1.obj2.key=1
setInterval(() => {
  console.log(acmClient.get('myGroup.myDataId.obj1.obj2.key'))
}, 1000)

Test

$ DEBUG=ali-acm node test

More

see @alicloud/acm-sdk.

Package Sidebar

Install

npm i ali-acm

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.64 kB

Total Files

7

Last publish

Collaborators

  • nswbmw