npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

is-server-response

1.0.0

@yoshuawuyts

npmHomeRepoSnykSocket
Downloads:1
$ npm install is-server-response
DailyWeeklyMonthlyYearly

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

  • is-incoming-message

License

MIT