1 | Clientlinker-flow-confighandler
|
2 | ==============================
|
3 |
|
4 | [![NPM Version][npm-image]][npm-url]
|
5 | [![NPM Downloads][downloads-image]][npm-url]
|
6 | [![NPM License][license-image]][npm-url]
|
7 | [![Install Size][install-size-image]][install-size-url]
|
8 |
|
9 |
|
10 | # Install
|
11 |
|
12 | Install `clientlinker` pkg
|
13 |
|
14 | ```shell
|
15 | npm i clientlinker --save
|
16 | ```
|
17 |
|
18 | Install flow pkg
|
19 |
|
20 | ```shell
|
21 | npm i clientlinker-flow-confighandler --save
|
22 | ```
|
23 |
|
24 |
|
25 | # Usage
|
26 |
|
27 | ```javascript
|
28 | var clientlinker = require('clientlinker');
|
29 | var linker = clientlinker({
|
30 | flows: ['confighandler'],
|
31 | clients: {
|
32 | client: {
|
33 | confighandler: {
|
34 | clientHanlder: function(query, body, callback, options)
|
35 | {
|
36 | return Promise.resolve({result: {}});
|
37 | },
|
38 | }
|
39 | }
|
40 | }
|
41 | });
|
42 |
|
43 | linker.flow('confighandler', require('clientlinker-flow-confighandler'));
|
44 |
|
45 | // use
|
46 | linker.run('client.clientHanlder', null, {id: 13})
|
47 | .then(function(){});
|
48 | ```
|
49 |
|
50 |
|
51 | [npm-image]: https://img.shields.io/npm/v/clientlinker-flow-confighandler.svg
|
52 | [downloads-image]: https://img.shields.io/npm/dm/clientlinker-flow-confighandler.svg
|
53 | [npm-url]: https://www.npmjs.org/package/clientlinker-flow-confighandler
|
54 | [license-image]: https://img.shields.io/npm/l/clientlinker-flow-confighandler.svg
|
55 | [install-size-url]: https://packagephobia.now.sh/result?p=clientlinker-flow-confighandler
|
56 | [install-size-image]: https://packagephobia.now.sh/badge?p=clientlinker-flow-confighandler
|