1.0.0 • Published 9 years ago
is-server-response v1.0.0
is-server-response
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
1.0.0
9 years ago