1.3.0 • Published 3 years ago

ts-apollo-client v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@zman2013/ts-apollo-client

Build Status Coverage Status npm

A TypeScript implementation of a client for Apollo(https://github.com/ctripcorp/apollo), the reliable configuration management system.

Usage

npm install ts-apollo-client

example1

import * as client from '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))

Github

https://github.com/zman2013/ts-apollo-client

1.3.0

3 years ago

1.2.0

3 years ago

1.1.3

3 years ago