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

Made by Antonio Ramirez

is-incoming-message

1.0.0

@yoshuawuyts

npmHomeRepoSnykSocket
Downloads:14
$ npm install is-incoming-message
DailyWeeklyMonthlyYearly

is-incoming-message

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

Check if value is an incoming message (req).

Installation

$ npm install is-incoming-message

Usage

const isReq = require('is-incoming-message')
const http = require('http')

http.createServer((req, res) => {
  isReq(req)
  // => true
})

See Also

  • is-server-response

License

MIT