simplepostapi

1.0.1 • Public • Published

PostAPI

Postapi(name, host, token, timeout)

Returns function: f(action, params, method, token)

const Postapi = require('simplepostapi')

var Auth = Postapi('authService', 'http://auth.somesite.com')

Auth('login', {
    some: 'param'
}).then(user => {
    // do stuff
})

Readme

Keywords

Package Sidebar

Install

npm i simplepostapi

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

2.15 kB

Total Files

3

Last publish

Collaborators

  • tacyarg