dev-tools-monitor v1.0.6
dev-tools-monitor
An package which can be used with any Javascript frameworks such as Angular, React, Vue, Vanilla JS to detect developer console is Opened or listen for opening of the developer console even when it is docked or undocked.
Installation
`npm i dev-tools-monitor --save`Usage
```
import {isDevToolsOpened} from 'dev-tools-monitor';
console.log(isDevToolsOpened(), 'Should return true or false');
```Available Functions
isDevToolsOpened() returns true | falseThis function just returns
trueif developer tools is opened and returnsfalseif not.startDevToolsListener(onDevToolsOpened: Function) returns undefinedThis function will start a listener and executes the call back function passed as parameter continuously when developer tools is opened. So, while using this be careful and use
stopDevToolsListenerfunction with it appropriately.stopDevToolsListener () returns undefinedThis function stops the execution of the success callback passed to
startDevToolsListenerand stops the listener. Now when console is opened it will no longer executes the call back passed tostartDevToolsListener.
Note : startDevToolsListener listener method will clear the console.
Compatability
- Microsoft Edge
- Google Chrome
- Safari
- Opera
- Firefox - Not yet supported