🚀 Socket Launch Week 🚀 Day 4: Introducing Historical Analytics.Learn More
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
a

ali-acm

Aliyun ACM sdk for Node.js.

1.0.0
latest
68

Supply Chain Security

100

Vulnerability

80

Quality

75

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Dependencies have 2 high alerts.

Socket optimized override available and High CVE

Version published
Maintainers
1
Created
Issues
0

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.

FAQs

Package last updated on 24 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts