MobileConsoleLite
Console emulator help you for debugging on mobile and tablet device.
MobileConsoleLite
create a DOM console catching the console.log and window error.
Installation
$ npm install mobile-console-lite//or$ yarn add mobile-console-lite
Importing
We recommand calling the script at the very top of the <head>
of your page to be sure catching every error/log.
CDN
Quick use
Will create the console at the end of body tag.
You also can specify the console container by passing a node selector in the first argument. example :
document
customising
you can pass an options
object for customising the console
const options = //some optionsdocument options
options
You can set conditions for launching the console.
hash
will start the console if the hash #name
is present in url
document initOn: hash: "name" //will start on https://www.example.com/#name
query
will start the console if the hash #name
is present in url
document initOn: query: "name" //will start on https://www.example.com/?name=value
You also can set the default display of console
minimize : boolean
default : false
document display: minimize: true
by default the console will be minimize
popup : boolean
default : false
document display: popup: true
by default the console will be popuped
TODO
- eval des commandes
- toggle de la console window
- resize de la console window
- drag de la console window
- init class on hash or query param
- add style param for customising console
- customising console catcher (log/error/warn)
- catching console.warn
- catching console.time
- catching console.table
- css bundles into one single file
- or test css in js
- doc
- TU
- TS