agreed-client
3.0.1 • Public • Published agreed-client
An agreed client for check response.
Install
$ npm install agreed-client -D
Usage
const agreedClient = require('agreed-client')
const {
client,
agrees,
reporter,
} = agreedClient({
path: './test/agreed.json5',
scheme: 'http',
host: 'localhost',
port: 30103,
defaultRequestHeaders: {
'x-jwt-token': 'foobarbaz'
}
})
client.requestPromise(agrees)
.then(reporter)
.catch((e) => {
console.error(e)
process.exit(1)
})
Package Sidebar
Install
Weekly Downloads