{"_id":"@dengzhaofun/egg-acm","_rev":"3-aa64dee7e3a917de160294e386051fc6","name":"@dengzhaofun/egg-acm","dist-tags":{"latest":"3.1.1"},"versions":{"3.0.0":{"name":"@dengzhaofun/egg-acm","version":"3.0.0","description":"Aliyun ACM(Application Configuration Management) plugin for Egg.js","eggPlugin":{"name":"acm"},"keywords":["egg","eggPlugin","egg-plugin"],"dependencies":{"@alicloud/acm-sdk":"^1.0.1"},"devDependencies":{"autod":"^3.0.1","autod-egg":"^1.1.0","egg":"^2.12.0","egg-bin":"^4.9.0","egg-mock":"^3.20.1","eslint":"^5.8.0","eslint-config-egg":"^7.1.0","webstorm-disable-index":"^1.2.0"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run autod -- --check && egg-bin pkgfiles --check && npm run lint && npm run cov","pkgfiles":"egg-bin pkgfiles","autod":"autod"},"ci":{"version":"8, 10"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-acm.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-acm#readme","author":{"name":"gxcsoccer","email":"gxcsoccer@126.com"},"license":"MIT","gitHead":"bb2bced532392412de50e5d84c0164f97374a5c5","_id":"@dengzhaofun/egg-acm@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"dengzhaofun","email":"3328638734@qq.com"},"dist":{"integrity":"sha512-1PouWh1BCTiXi1j+OcYKqRUltRL2373DiIzDOCuW6nFzbJTsvtV2uRbXVwzDB373JdoGDQp/UBh+JDty0LwUpw==","shasum":"d841cdcd76fa17638625526621dc1664763824b1","tarball":"https://registry.npmjs.org/@dengzhaofun/egg-acm/-/egg-acm-3.0.0.tgz","fileCount":10,"unpackedSize":11192,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcl5MCCRA9TVsSAnZWagAACKoQAJ1A9XbE0WPSvni4aPBD\nAafXkGZj0F1+yN9HAcU6lB0dpF/ZE9zBEWBU63gCm9WRM9Uoc4tMJMQwtoqT\nkKLsyBJacDnMPSIglqpApS1yO2rVkGQ/j57Yh3KXUNiYHfYLYewqtbYsOznf\nRpasdS3DwNzwk4sSdcOKhlC/dKicaGphjtZV4HHMVKJGY/ejLhqVijC1a+Py\nemVBLaiQG3jHpyc35YhslQuggZBTIPcT40NtNFl2hB4qfyM13a/RvTZRwS+g\n41jtlEXa/zbOAY6tCVOZqNM3zwneIv/o/dKocTKz+mg6hGjAaw64SCwUZCbL\n5wPoR2tfL2RVyhTvbBC89US6HC6SXo+TZ4CQBZ6gaR5VFl4Q3S3dRzOdgrxF\n7wQgsiwKa8AHLjp76EaQxB8I9P6+5dO6GAhw8I9OF13XUbFsO/bnI1aq+W0k\nZtiDdik99uLCsZqIkTiyAn9ZXXLO0QwUEqpaQEGWV1e37ii8vczyqU3N9vKC\n2eaCj1FuliL2TevdV0KJHzSAh0VvKELF+2nrgnFwigb1xe4YgiLJVWtPJHY4\n9G3f7ub1J6wgB/R4dd3Q7Clox2HupzdOazjXBzsvlWB/B4F1LSg7rqvSsvqP\nKtSXTFZflObPwxJZDpYMRwmBCMp6cWxiGX5ONcxzAlVUGO8WiAlJBCbXCzTH\nqhmS\r\n=uob/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEWQPfuwnO+8mv0vuGRnJEaSNEt1gu0pN+BUP90xxUlBAiAzpczYAPUpvscV0DMG3G5eHRtNjU8uhFuz5rrv0Sh9Lg=="}]},"maintainers":[{"name":"dengzhaofun","email":"3328638734@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-acm_3.0.0_1553437441292_0.6476929232309152"},"_hasShrinkwrap":false},"3.1.0":{"name":"@dengzhaofun/egg-acm","version":"3.1.0","description":"Aliyun ACM(Application Configuration Management) plugin for Egg.js","eggPlugin":{"name":"acm"},"keywords":["egg","eggPlugin","egg-plugin"],"dependencies":{"@alicloud/acm-sdk":"^1.0.1"},"devDependencies":{"autod":"^3.0.1","autod-egg":"^1.1.0","egg":"^2.12.0","egg-bin":"^4.9.0","egg-mock":"^3.20.1","eslint":"^5.8.0","eslint-config-egg":"^7.1.0","webstorm-disable-index":"^1.2.0"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run autod -- --check && egg-bin pkgfiles --check && npm run lint && npm run cov","pkgfiles":"egg-bin pkgfiles","autod":"autod"},"ci":{"version":"8, 10"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-acm.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-acm#readme","author":{"name":"gxcsoccer","email":"gxcsoccer@126.com"},"license":"MIT","gitHead":"bb2bced532392412de50e5d84c0164f97374a5c5","_id":"@dengzhaofun/egg-acm@3.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"dengzhaofun","email":"3328638734@qq.com"},"dist":{"integrity":"sha512-KK8JYs7jf0PnBYR26i7Sfozx3FQZHQDmpt5vZR0A1C55PQU7qbfWNzyli+9H+j/28gDXceoYT2lkVTN4KuFgvA==","shasum":"c14e33f5cb459c3bd53ae9ccab30e8ee11dfc677","tarball":"https://registry.npmjs.org/@dengzhaofun/egg-acm/-/egg-acm-3.1.0.tgz","fileCount":10,"unpackedSize":11239,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcl5Q0CRA9TVsSAnZWagAA2BIP/3XvRLk0NPbu+tSHRl2A\nQzZXIToz2c1efu5AdFUMZCnGIKsleQIsFeqgYY0c9irvaBG7GDwJh9yjSgbS\ntUt2BTQDc4dgljiOTjlPzAoydEn6zdvwxLUyIBBpYemhi0MewAr0Dp5D2DW1\njianDKQoq5oHld+WqVJu+AgG/CkCpHZ1857PUgTODYo25e5NV7tLbrz7n9r8\nqc0ip477umnVzAOrWp1XEy0Ia3VHu9mevvI9pnjCEn4JfYRtyFwdrqgd6K0q\ns/4nSvwADLT6f2PL/3PT94YcWMOZyB77+zg2zGtIt9O8X7sI0UCrJMdHJ0dk\nSKIb8MB2b0kMSQXfyhLucuhsP+LuWxII3VbxrNpT+3CDfwO5pFfiMKqcnyK5\noAvBBGVgUddIkWWd3NpL8iFBu3lYRV5LvQ3PAixRpqxiacm+g+Q8E6PaYSWM\nRUhuRhLb+ZKn5Ba+gysQrqxuHDHpEliATEr2eSdohZMlOqGlqt033cbhlne+\nFd6o+A/Ak/HpR0+1JOj8iQyO6cO6eyPEq1jz7cKbC7VUfC51Ih7UoAAZZJec\nWHWGkqBRj/CuIF8/k5/Tlvmd+dnWlSKcRnp970AOfjmmEHUogCVwjOULHcll\nZ+pcSasskfiAHcDKdNmbFle/W7EWHt5+dH9CI/zXQR0ARljFq1keKEcBoTH2\nz1/0\r\n=F4jD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICGFvmt5yrZRrH7oFSicCDnLgvAFk+acuCFu1R6TlUetAiBMw1RnhecMeY7M+ulAl7GTfExcSrSB59VJVvWWMGB5Fw=="}]},"maintainers":[{"name":"dengzhaofun","email":"3328638734@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-acm_3.1.0_1553437747675_0.3645159023833924"},"_hasShrinkwrap":false},"3.1.1":{"name":"@dengzhaofun/egg-acm","version":"3.1.1","description":"Aliyun ACM(Application Configuration Management) plugin for Egg.js","eggPlugin":{"name":"acm"},"keywords":["egg","eggPlugin","egg-plugin"],"dependencies":{"@alicloud/acm-sdk":"^1.0.1"},"devDependencies":{"autod":"^3.0.1","autod-egg":"^1.1.0","egg":"^2.12.0","egg-bin":"^4.9.0","egg-mock":"^3.20.1","eslint":"^5.8.0","eslint-config-egg":"^7.1.0","webstorm-disable-index":"^1.2.0"},"engines":{"node":">=8.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"npm run autod -- --check && egg-bin pkgfiles --check && npm run lint && npm run cov","pkgfiles":"egg-bin pkgfiles","autod":"autod"},"ci":{"version":"8, 10"},"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-acm.git"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"homepage":"https://github.com/eggjs/egg-acm#readme","author":{"name":"gxcsoccer","email":"gxcsoccer@126.com"},"license":"MIT","gitHead":"bb2bced532392412de50e5d84c0164f97374a5c5","_id":"@dengzhaofun/egg-acm@3.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"dengzhaofun","email":"3328638734@qq.com"},"dist":{"integrity":"sha512-jGL8Kt392EiWgSQqA4ThlGvgGTA6fpQ1nVLOlFZRKpvqVLCOa3vq+/AHf5n0krsHu9CStgENnI2uRuYZqvGuKA==","shasum":"7850dc5a279383e5ff006b86ceafc848c6645e05","tarball":"https://registry.npmjs.org/@dengzhaofun/egg-acm/-/egg-acm-3.1.1.tgz","fileCount":10,"unpackedSize":11241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcl5SVCRA9TVsSAnZWagAA/CcP/3/LSMPYctO9O3h1bNsF\n6682fjIttOeOomElFXAkF5PHnRO0xT4K/CT4Xet/G0KvYJ6Iqnja5Ec+pFM3\nZdDMYkoKJAJNjqG2LniGDLvUUMvTFQovwiqTRnwE14RZAVHzGTSyfOaPUogc\nATudHP8UNZMTWiz+6QHklN7qAd9lYsr6Mu9SqUUW1W+bhyWQQfacyog/ns3B\nF8+r/HpF0W29fG35s4jCbjpx6YLv1FtPq/HG8UIcsFq4MaxdjN5+eErmtStn\nH5zJVGCYKG2G+X+A2SCdzangRo2EEDqcg/vNdpRswOsrrF8po7UD6qjSkYUs\nEg+f092l/5yX68KPaTaYvc+pNlFiOZWIdwKzq4cDJtguR9OzKG+smUAcbS4Q\nyuh5C7LUZtb26MaiPPh3M6oLVEgTVO5e0BlfiUlMYfpfnJ9obKuhBPcYz/d/\nRr9AQiLOnLEa/DfzanHzI9bdD5PvS+CAz/uKmcInigvJkNd1o017K2EYafUd\nLnMsBSqjrMG4SYg9YKDwRkVsC8aGE5VUY+aqCVjkTmla20p2gq+Q1ELDLFzJ\n6aXk5OU/MDqcEpwwiuUYJuD0o+rKQ1CE4SeVWw3/rSCARgEW5xUv+K1dFQCX\n4UGmylyLw2UdMEQRD79ptgcT4h2khgamCg/qNxJDl2tXs8Fa4aKBOvVeVIsD\nwDya\r\n=m1jE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB6fKj3fZc0cYML7pQZN+6iiUCA9r2iJbgQy6Sc+7lQxAiEA2WC4/uVR0LlZgjW38lirkbAMHxJm58m5KW5M6zDmCTg="}]},"maintainers":[{"name":"dengzhaofun","email":"3328638734@qq.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-acm_3.1.1_1553437844871_0.43914689747218105"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-24T14:24:01.106Z","3.0.0":"2019-03-24T14:24:01.426Z","modified":"2022-04-05T03:44:54.354Z","3.1.0":"2019-03-24T14:29:07.829Z","3.1.1":"2019-03-24T14:30:44.978Z"},"maintainers":[{"name":"dengzhaofun","email":"3328638734@qq.com"}],"description":"Aliyun ACM(Application Configuration Management) plugin for Egg.js","homepage":"https://github.com/eggjs/egg-acm#readme","keywords":["egg","eggPlugin","egg-plugin"],"repository":{"type":"git","url":"git+https://github.com/eggjs/egg-acm.git"},"author":{"name":"gxcsoccer","email":"gxcsoccer@126.com"},"bugs":{"url":"https://github.com/eggjs/egg/issues"},"license":"MIT","readme":"# egg-acm\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-acm.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-acm\n[travis-image]: https://img.shields.io/travis/eggjs/egg-acm.svg?style=flat-square\n[travis-url]: https://travis-ci.org/eggjs/egg-acm\n[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-acm.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/eggjs/egg-acm?branch=master\n[david-image]: https://img.shields.io/david/eggjs/egg-acm.svg?style=flat-square\n[david-url]: https://david-dm.org/eggjs/egg-acm\n[snyk-image]: https://snyk.io/test/npm/egg-acm/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-acm\n[download-image]: https://img.shields.io/npm/dm/egg-acm.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-acm\n\nApplication Configuration Management (ACM), formerly known as Taobao's internal configuration center Diamond, is an application configuration center that enables you to centralize the management of application configurations, and accomplish real-time configuration push in a distributed environment. With ACM, you can greatly reduce the workload of configuration management and enhance service capabilities in scenarios such as microservices, DevOps, and big data.\n\n## Install\n\n```bash\n$ npm i egg-acm --save\n```\n\n## Usage\n\n```js\n// {app_root}/config/plugin.js\nexports.acm = {\n  enable: true,\n  package: 'egg-acm',\n};\n```\n\n## Configuration\n\n```js\n// {app_root}/config/config.default.js\nexports.acm = {\n  endpoint: 'acm.aliyun.com', // Available in the ACM console\n  namespace: '**********',    // Available in the ACM console\n  accessKey: '**********',    // Available in the ACM console\n  secretKey: '**********',    // Available in the ACM console\n  requestTimeout: 6000,       // Request timeout, 6s by default\n};\n```\n\nsee [config/config.default.js](config/config.default.js) for more detail.\n\n## Example\n\nyou can access [acm-client](https://github.com/acm-group/acm-sdk-nodejs#api) api via `app.acm` or `ctx.acm`\n```js\n// get config\nconst content= await app.acm.getConfig('test', 'DEFAULT_GROUP');\nconsole.log('getConfig = ',content);\n\n// subscription\napp.acm.subscribe({\n  dataId: 'test',\n  group: 'DEFAULT_GROUP',\n}, content => {\n  console.log(content);\n});\n\n// publish config\nconst content= await app.acm.publishSingle('test', 'DEFAULT_GROUP', '测试');\nconsole.log('getConfig = ',content);\n\n// delete config\nawait acm.remove('test', 'DEFAULT_GROUP');\n```\n\n## Questions & Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg/issues).\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}