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

Usage no npm install needed!

<script type="module">
  import tsApolloClient from 'https://cdn.skypack.dev/ts-apollo-client';
</script>

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