is-incoming-message

1.0.0 • Public • Published

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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i is-incoming-message

Weekly Downloads

25

Version

1.0.0

License

MIT

Last publish

Collaborators

  • yoshuawuyts