@zman2013/ts-apollo-client
v1.1.2
Published
[![Build Status](https://github.com/zman2013/ts-apollo-client/workflows/Build%20and%20Release/badge.svg)](https://github.com/zman2013/ts-apollo-client/workflows/Build%20and%20Release/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/zman201
Downloads
382
Readme
@zman2013/ts-apollo-client
A TypeScript implementation of a client for Apollo(https://github.com/ctripcorp/apollo), the reliable configuration management system.
Usage
npm install @zman2013/ts-apollo-client
example1
import * as client from '@zman2013/ts-apollo-client'
const meta = new client.Meta('http://xxx', 'appId')
client.getConfig(meta).then(json => console.log(json))
example2 - multiple namespaces
import * as client from '@zman2013/ts-apollo-client'
const meta = new client.Meta('http://xxx', 'appId', ['application', 'common'])
client.getConfig(meta).then(json => console.log(json))