8000 GitHub - zman2013/ts-apollo-client: typescript apollo client
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zman2013/ts-apollo-client

Repository files navigation

@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

About

typescript apollo client

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published
0