# nestjs-ctrip-apollo-client

> NestJS Module for Ctrip Apollo

Latest version **1.0.1** (published 2020-01-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install nestjs-ctrip-apollo-client
pnpm add nestjs-ctrip-apollo-client
yarn add nestjs-ctrip-apollo-client
bun add nestjs-ctrip-apollo-client
```

## 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.0.1 |
| Published | 2020-01-09 |
| First published | 2020-01-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 25.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | chf007 |
| Maintainers | chf007 |
| Keywords | nestjs, Ctrip, Apollo |

## Links

- npm: https://www.npmjs.com/package/nestjs-ctrip-apollo-client
- Repository: https://github.com/chf007/nestjs-ctrip-apollo-client
- Homepage: https://github.com/chf007/nestjs-ctrip-apollo-client#readme
- Issues: https://github.com/chf007/nestjs-ctrip-apollo-client
- npm.io page: https://npm.io/package/nestjs-ctrip-apollo-client

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [request](https://npm.io/package/request.md) ^2.88.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.7.2

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-01-09
- 1.0.0 — 2020-01-08

## README

# NestJS CtripApolloClientModule

携程 [Apollo 配置中心](https://github.com/ctripcorp/apollo) NestJS 客户端，基于[node-apollo-client](https://github.com/shinux/node-apollo-client)封装。

## 安装

```bash
npm install nestjs-ctrip-apollo-client
```

## 使用

```
import { Module } from '@nestjs/common';
import { CtripApolloClientModule } from 'nestjs-ctrip-apollo-client';

@Module({
  imports: [
    CtripApolloClientModule.register({
      configServerUrl: 'http://xxx.xxx.xxx.xxx',
      appId: 'my-app',
      cluster: 'default',
      namespaces: ['application'],
      initialConfigs: {},
      listenOnNotification: true,
      fetchCacheInterval: 5 * 60e3,
      cachedConfigFilePath: '/tmp',
    }),
  ],
  providers: [],
})
export class AppModule {}
```

---
_Source: https://npm.io/package/nestjs-ctrip-apollo-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
