is-express-app
v4.0.0
Published
Function to check if the argument is an instance created by express (with express())
Downloads
3
Maintainers
Readme
Is Express App
Function to check if the argument is an instance created by express (express()
)
Install
npm install --save is-express-app
or with yarn:
yarn add is-express-app
Usage
True
import express from 'express'
import isExpressApp from 'is-express-app'
console.log(isExpressApp(express()))
False
import isExpressApp from 'is-express-app'
console.log(isExpressApp(() => {})))
console.log(isExpressApp(null)))
console.log(isExpressApp({})))
console.log(isExpressApp([])))
// ...