@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(),
    env: appEnv.env
})

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

demo.get().then(config => console.log(config))