Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solid-primitives/platform

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/platform

A set of const boolean variables identifying device and browser type.

  • 0.0.104
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14K
increased by2.55%
Maintainers
3
Weekly downloads
 
Created
Source

Solid Primitives platform

@solid-primitives/platform

turborepo size version stage

A set of const boolean variables identifying device and browser type.

Installation

npm install @solid-primitives/platform
# or
yarn add @solid-primitives/platform

How to use it

import { isWebKit, isFirefox } from "@solid-primitives/platform";

if (!isFirefox) {
  // won't run on the Mozilla Firefox Browser
}

if (isWebKit) {
  // run WebKit Engine specific code
}

List of variables

Device

  • isAndroid — Is Android Device

  • isWindows — Is Windows Device

  • isMac — Is Mac Device

  • isIPhone — Is IPhone Device

  • isIPad — Is IPad Device

  • isIPod — Is IPod Device

  • isIOS — Is IOS Device

  • isAppleDevice — Is Apple Device

  • isMobile — is a Mobile Browser

Browser

  • isFirefox — Browser is Mozilla Firefox

  • isOpera — Browser is Opera

  • isSafari — Browser is Safari

  • isIE — Browser is Internet Explorer

  • isChromium — is Chromium-based browser

  • isEdge — Browser is Edge

  • isChrome — Browser is Chrome

Rendering Engine

  • isGecko — Browser using Gecko Rendering Engine

  • isBlink — Browser using Blink Rendering Engine

  • isWebKit — Browser using WebKit Rendering Engine

  • isPresto — Browser using Presto Rendering Engine

  • isTrident — Browser using Trident Rendering Engine

  • isEdgeHTML — Browser using EdgeHTML Rendering Engine

Changelog

See CHANGELOG.md

Keywords

FAQs

Package last updated on 28 Feb 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc