npm.io
5.1.0 • Published 6 years ago

rfunc-client

Licence
MIT
Version
5.1.0
Deps
7
Size
61 kB
Vulns
1
Weekly
0

rfunc-client

Build Status npm Version JS Standard

Client of rfunc server

Installation

$ npm install rfunc-client --save

Usage

#!/usr/bin/env node

/**
 * This is an example of rfunc client
 */
'use strict'

const rclient = require('rfunc-clinet')

void async function () {
  const sign = await rclient().connect('sign') // Define a client

  // Call remote api and receive the result
  const {success} = await sign.signin('foo', 'bar1234')
  console.log('success:', success)
}().catch((err) => console.error(err))

License

This software is released under the MIT License.

Keywords