is-server-response

1.0.0 • Public • Published

is-server-response

NPM version build status Test coverage Downloads js-standard-style

Check if value is a server response (res).

Installation

$ npm install is-server-response

Usage

const isRes = require('is-server-response')
const http = require('http')
 
http.createServer((req, res) => {
  isRes(res)
  // => true
})

See Also

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i is-server-response

Weekly Downloads

42

Version

1.0.0

License

MIT

Last publish

Collaborators

  • yoshuawuyts