mehttp

0.0.2 • Public • Published

myrequest

Http Utilities for Get and Post

Insatllation

npm install myrequest --save

Usage

const myRequest = require('./ours/myrequest')

const indy = new myRequest('localhost', 8083);

indy.Get('/indy/info').then(result => console.dir('Indy is running'))

                  .catch(err => console.log(`Error on Indy: ${err}`))

const fabric = new myRequest('localhost', 7061);

fabric.Post('/register', {"device_id": "ttdata"}).then(result => console.dir('Fabric is running'))

.catch(err => console.log(Error on Fabric: ${err}))

Package Sidebar

Install

npm i mehttp

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

6.26 kB

Total Files

5

Last publish

Collaborators

  • shaw1236