Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevoree/kevoree-js-registry-client
:warning: MOVED TO https://github.com/kevoree/kevoree-js
https://github.com/kevoree/kevoree-js-registry-client
Last synced: about 1 month ago
JSON representation
:warning: MOVED TO https://github.com/kevoree/kevoree-js
- Host: GitHub
- URL: https://github.com/kevoree/kevoree-js-registry-client
- Owner: kevoree
- License: lgpl-3.0
- Created: 2017-05-11T12:41:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-28T15:20:00.000Z (over 7 years ago)
- Last Synced: 2024-11-11T18:52:19.729Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Kevoree Registry Client
=======================
A library to communicate with a Kevoree registry REST API:warning: this is under development, use at your own risks :warning:
## Install
```sh
npm install kevoree-registry-client
```
or
```sh
yarn add kevoree-registry-client
```## Usage
```ts
import * as api from 'kevoree-registry-client';
// list namespaces
api.namespace.all()
.then((namespaces) => {
namespaces.forEach(ns => console.log);
})
.catch(err => {
console.error(err.message);
});
```## Bundles
The API is built for 3 different targets:
- es6 (nodejs v6+)
- `build/main`
- browser (es5)
- `build/browser`## Clone
```sh
git clone [email protected]:kevoree/kevoree-js-registry-client.git
cd kevoree-js-registry-client
```## Tests
```sh
npm install
npm run build
npm test
```## Notes
This API makes an extensive use of `Promise` and `fetch` which means that it is only compatible with *real* browsers by default as it is not shipped with any polyfill.
If you want to make it work on *bad* browsers you'll need things like [github/fetch](https://github.com/github/fetch) and [stefanpenner/es6-promise](https://github.com/stefanpenner/es6-promise).