is-incoming-message

Check if value is an incoming message (`req`)

MIT 1 个版本
安装
npm install is-incoming-message
yarn add is-incoming-message
pnpm add is-incoming-message
bun add is-incoming-message
README

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

版本列表
1.0.0 2015-08-09