Is In Browser?
import isBrowser from 'is-in-browser';
if(isBrowser) {
//...
}
CommonJS
For those not using Babel / ES6 Modules
var isBrowser = require('is-in-browser').default;
if(isBrowser) { //... }
License |
License |
---|---|
GroupId | GroupIdorg.webjars.npm |
ArtifactId | ArtifactIdis-in-browser |
Last Version | Last Version1.1.3 |
Release Date | Release Date |
Type | Typejar |
Description |
Descriptionis-in-browser
WebJar for is-in-browser
|
Project URL |
Project URL |
Source Code Management |
Source Code Management |
Filename | Size |
---|---|
is-in-browser-1.1.3.pom | |
is-in-browser-1.1.3.jar | 6 KB |
is-in-browser-1.1.3-sources.jar | 22 bytes |
is-in-browser-1.1.3-javadoc.jar | 22 bytes |
Browse |
<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-in-browser/ -->
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>is-in-browser</artifactId>
<version>1.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-in-browser/
implementation 'org.webjars.npm:is-in-browser:1.1.3'
// https://jarcasting.com/artifacts/org.webjars.npm/is-in-browser/
implementation ("org.webjars.npm:is-in-browser:1.1.3")
'org.webjars.npm:is-in-browser:jar:1.1.3'
<dependency org="org.webjars.npm" name="is-in-browser" rev="1.1.3">
<artifact name="is-in-browser" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-in-browser', version='1.1.3')
)
libraryDependencies += "org.webjars.npm" % "is-in-browser" % "1.1.3"
[org.webjars.npm/is-in-browser "1.1.3"]
import isBrowser from 'is-in-browser';
if(isBrowser) {
//...
}
For those not using Babel / ES6 Modules
var isBrowser = require('is-in-browser').default;
if(isBrowser) { //... }