Socket
Socket
Sign inDemoInstall

@dvlden/asb-detect

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @dvlden/asb-detect

Simple Android stock-browser detection.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
6.62 kB
Created
Weekly downloads
 

Readme

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

Last updated on 23 Jan 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc