@zman2013/ts-apollo-client

[![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 in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@zman2013/ts-apollo-client
1.1.22 years ago2 years agoMinified + gzip package size for @zman2013/ts-apollo-client in KB

Readme

@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 @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))

Github

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