is-mode
Install
npm i is-mode
yarn add is-mode
Usage
If Browser
; // http://localhost?mode=abcisMode"abc" === true // true
Change check params
; setup // http://localhost?newMode=abcisMode"abc" === true // true
If Server Side
; // in server sideisMode"any-key" === false // always true
Update
yarn outdatedyarn upgrade
Publish
yarn publish
Badges
License
MIT