@4a/sdk-configure

配置中心sdk

Usage no npm install needed!

<script type="module">
  import 4aSdkConfigure from 'https://cdn.skypack.dev/@4a/sdk-configure';
</script>

README

sdk-configure

配置中心sdk

Install

npm i @4a/sdk-configure

Usage

const SDK = require('@4a/sdk-configure')

const Configure = SDK({
    appId: 'appId',
    appSecret: 'appSecret',
    redis: new Redis(),
    debug: true,
    baseURL: 'http://localhost:3000',
})

const demo = new Configure('demo:group:user')

demo.get()
    .then(result => console.log(result))
    .catch(err => console.error(err))