# egg-plugin-acm

> egg plugin acm

Latest version **1.1.5** (published 2019-01-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install egg-plugin-acm
pnpm add egg-plugin-acm
yarn add egg-plugin-acm
bun add egg-plugin-acm
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2019-01-11 |
| First published | 2019-01-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 2 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | lixiang920531 |
| Maintainers | lixiang920531 |
| Keywords | egg, eggPlugin, eggPluginAcm, egg-plugin, egg-plugin-acm |

## Links

- npm: https://www.npmjs.com/package/egg-plugin-acm
- Repository: https://github.com/eggjs/egg-hello
- Homepage: https://github.com/eggjs/egg-hello#readme
- Issues: https://github.com/eggjs/egg/issues
- npm.io page: https://npm.io/package/egg-plugin-acm

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [egg-acm](https://npm.io/package/egg-acm.md) ^3.0.0

## Recent versions

- 1.1.5 (latest) — 2019-01-11
- 1.1.4 — 2019-01-11
- 1.1.3 — 2019-01-11
- 1.1.2 — 2019-01-11
- 1.1.1 — 2019-01-10
- 1.1.0 — 2019-01-10
- 1.0.9 — 2019-01-10
- 1.0.8 — 2019-01-10
- 1.0.7 — 2019-01-10
- 1.0.6 — 2019-01-09
- 1.0.5 — 2019-01-08
- 1.0.4 — 2019-01-08
- 1.0.3 — 2019-01-08
- 1.0.2 — 2019-01-07
- 1.0.1 — 2019-01-07
- … 1 more at https://npm.io/package/egg-plugin-acm/versions

## README

# egg-hello

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/egg-hello.svg?style=flat-square
[npm-url]: https://npmjs.org/package/egg-hello
[travis-image]: https://img.shields.io/travis/eggjs/egg-hello.svg?style=flat-square
[travis-url]: https://travis-ci.org/eggjs/egg-hello
[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-hello.svg?style=flat-square
[codecov-url]: https://codecov.io/github/eggjs/egg-hello?branch=master
[david-image]: https://img.shields.io/david/eggjs/egg-hello.svg?style=flat-square
[david-url]: https://david-dm.org/eggjs/egg-hello
[snyk-image]: https://snyk.io/test/npm/egg-hello/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/egg-hello
[download-image]: https://img.shields.io/npm/dm/egg-hello.svg?style=flat-square
[download-url]: https://npmjs.org/package/egg-hello

<!--
Description here.
-->

## Install

```bash
$ npm i egg-plugin-acm --save
```

## Usage

```js
// {app_root}/config/plugin.js
exports.eggPluginAcm = {
  enable: true,
  package: 'egg-plugin-acm',
};
```

## Configuration

```js
// {app_root}/config/config.default.js
exports.acm = {
  endpoint: '',
  namespace: '',
  accessKey: '',
  secretKey: '',
  requestTimeout: 6000,
  group: '',
  dataId: '',
};

// or
exports.acm = {
  endpoint: '',
  namespace: '',
  accessKey: '',
  secretKey: '',
  requestTimeout: 6000,
  clients: [
    {
      key: 'acm1',
      group: '',
      dataId: '',
    },
    {
      key: 'acm2',
      group: '',
      dataId: '',
    },
  ],
};
```

## Controller

```js
// 在application中可以这样调用
ctx.app.acm.getAcm(key1, key2 ...);

// or
ctx.app.acm.getAcm([key1, key2 ...]);

// or 如果配置多个使用get获取
ctx.app.acm.acm1.getAcm(key1, key2 ...);

// or
ctx.app.acm.acm2.getAcm([key1, key2 ...]);
```

see [config/config.default.js](config/config.default.js) for more detail.

## Example

<!-- example here -->

## Questions & Suggestions

Please open an issue [here](https://github.com/eggjs/egg/issues).

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/egg-plugin-acm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
