Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
mobile-console-lite
Advanced tools
Readme
Console emulator help you for debugging on mobile and tablet device.
MobileConsoleLite
create a DOM console catching the console.log and window error.
$ npm install mobile-console-lite
//or
$ yarn add mobile-console-lite
We recommand calling the script at the very top of the <head>
of your page to be sure catching every error/log.
import MCL from "mobile-console-lite"
new MCL()
<script type="text/javascript" src="path/to/dist/mcl.js"></script>
<script type="text/javascript">
new MCL()
</script>
import MCL from "mobile-console-lite"
new MCL()
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 :
new MCL(document.querySelector("#app"))
you can pass an options
object for customising the console
import MCL from "mobile-console-lite"
const options = {
//some options
}
new MCL(document.querySelector("#app"), options)
hash
will start the console if the hash #name
is present in url
new MCL(document.querySelector("#app"), {
initOn: {
hash: "name"
}
})
//will start on https://www.example.com/#name
query
will start the console if the hash #name
is present in url
new MCL(document.querySelector("#app"), {
initOn: {
query: "name"
}
})
//will start on https://www.example.com/?name=value
minimize : boolean
default : false
new MCL(document.querySelector("#app"), {
display: {
minimize: true
}
})
by default the console will be minimize
popup : boolean
default : false
new MCL(document.querySelector("#app"), {
display: {
popup: true
}
})
by default the console will be popuped
FAQs
A console emulator for debugging on mobile and tablet
The npm package mobile-console-lite receives a total of 61 weekly downloads. As such, mobile-console-lite popularity was classified as not popular.
We found that mobile-console-lite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.