# devtools-detect > Detect if DevTools is open and its orientation Useful for when you want something special to happen when DevTools is open. Like pausing canvas, adding style debug info, etc. ## [Demo](https://sindresorhus.com/devtools-detect) ## Install ```sh npm install devtools-detect ``` ## Usage ```html ``` ## Support - Chrome DevTools - Safari DevTools - Firefox DevTools - Opera DevTools ## Caveats Doesn't work if DevTools is undocked and will show false positive if you toggle any kind of sidebar.