
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
@nothing-but/platform
Advanced tools
A set of const boolean variables identifying device and browser type.
A set of const boolean variables identifying device and browser type.
npm install @nothing-but/platform
# or
pnpm add @nothing-but/platform
# or
yarn add @nothing-but/platform
import {is_webkit, is_firefox} from '@nothing-but/platform'
if (!is_firefox) {
// won't run on the Mozilla Firefox Browser
}
if (is_webkit) {
// run WebKit Engine specific code
}
Note: This package is tree-shakable, all unused variables will be removed from the bundle.
Note: On the server, all variables will be
false
.
is_android
— Is Android Device
is_windows
— Is Windows Device
is_mac
— Is Mac Device
is_iphone
— Is IPhone Device
is_ipad
— Is IPad Device
is_ipod
— Is IPod Device
is_ios
— Is IOS Device
is_apple_device
— Is Apple Device
is_mobile
— is a Mobile Browser
is_firefox
— Browser is Mozilla Firefox
is_opera
— Browser is Opera
is_safari
— Browser is Safari
is_ie
— Browser is Internet Explorer
is_chromium
— is Chromium-based browser
is_edge
— Browser is Edge
is_chrome
— Browser is Chrome
is_brave
— Browser is Brave
is_gecko
— Browser using Gecko Rendering Engine
is_blink
— Browser using Blink Rendering Engine
is_webkit
— Browser using WebKit Rendering Engine
is_presto
— Browser using Presto Rendering Engine
is_trident
— Browser using Trident Rendering Engine
is_edge_html
— Browser using EdgeHTML Rendering Engine
See CHANGELOG.md
FAQs
A set of const boolean variables identifying device and browser type.
The npm package @nothing-but/platform receives a total of 7 weekly downloads. As such, @nothing-but/platform popularity was classified as not popular.
We found that @nothing-but/platform 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.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.