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

@dvlden/asb-detect

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dvlden/asb-detect

Simple Android stock-browser detection.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Android Stock-Browser Detect

GitHub package.json version npm bundle size (scoped)

ASB-Detect has only one purpose – to detect any Android Stock-Browser and redirect visitor to download Google Chrome from the Android Market directly. There's simply no reason why anyone would use Stock-Browser that comes with older Android's, if there's Google Chrome for those devices. Google Chrome is default browser on newer Android devices...


Installation

Use your favourite package manager... In my case that's pnpm.

pnpm i @dvlden/asb-detect

Usage

Browser

import { asb } from '@dvlden/asb-detect'

asb.detect()

Node

const { asb } = require('@dvlden/asb-detect')

asb.detect()

Options

You can write your own logic for detection with access to isStock property.

if (asb.isStock) {
  // do something...
}

You can pass an optional message to the detect() function. If you want to omit the default one.

asb.detect('Your custom message, instead?')

Keywords

FAQs

Package last updated on 23 Jan 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