
Product
Unify Your Security Stack with Socket Basics
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
jbenvironment
Advanced tools
JBEnvironment is a library that provides features for the environment where JavaScript is running.
JBEnvironment is a library that provides features for the environment where JavaScript is running.
The properties of the JBEnvironment
are shown below.
console.log(JBEnvironment.BrowserVer);
if (JBEnvironment.Chrome) {
console.log('Running on Google Chrome browser');
}
else {
console.log('Running on not Google Chrome browser');
}
if (JBEnvironment.Edge) {
console.log('Running on Microsoft Edge browser');
}
else {
console.log('Running on not Microsoft Edge browser');
}
if (JBEnvironment.FireFox) {
console.log('Running on Mozilla Firefox browser');
}
else {
console.log('Running on not Mozilla Firefox browser');
}
if (JBEnvironment.Gecko) {
console.log('Browser base is Gecko');
}
else {
console.log('Browser base is not Gecko');
}
if (JBEnvironment.IE) {
console.log('Running on Microsoft Internet Explorer browser');
}
else {
console.log('Running on not Microsoft Internet Explorer browser');
}
if (JBEnvironment.Opera) {
console.log('Running on Opera browser');
}
else {
console.log('Running on not Opera browser');
}
if (JBEnvironment.Safari) {
console.log('Running on Apple Safari browser');
}
else {
console.log('Running on not Apple Safari browser');
}
if (JBEnvironment.WebKit) {
console.log('Browser base is Apple WebKit');
}
else {
console.log('Browser base is not Apple WebKit');
}
if (JBEnvironment.Android) {
console.log('Running on Android device');
}
else {
console.log('Running on not Android device');
}
if (JBEnvironment.IOS) {
console.log('Running on iOS device');
}
else {
console.log('Running on not iOS device');
}
if (JBEnvironment.IPad) {
console.log('Running on iPad device');
}
else {
console.log('Running on not iPad device');
}
if (JBEnvironment.IPhone) {
console.log('Running on iPhone device');
}
else {
console.log('Running on not iPhone device');
}
if (JBEnvironment.Mobile) {
console.log('Running on mobile device');
}
else {
console.log('Running on not mobile device');
}
if (JBEnvironment.Mac) {
console.log('Running on Apple macOS system');
}
else {
console.log('Running on not Apple macOS system');
}
if (JBEnvironment.Win) {
console.log('Running on Microsoft Windows system');
}
else {
console.log('Running on not Microsoft Windows system');
}
if (JBEnvironment.HTTPS) {
console.log('Use SSL');
}
else {
console.log('Not use SSL');
}
FAQs
JBEnvironment is a library that provides features for the environment where JavaScript is running.
The npm package jbenvironment receives a total of 0 weekly downloads. As such, jbenvironment popularity was classified as not popular.
We found that jbenvironment 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
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.
Research
/Security News
The Socket Threat Research Team uncovered a coordinated campaign that floods the Chrome Web Store with 131 rebranded clones of a WhatsApp Web automation extension to spam Brazilian users.