Socket
Socket
Sign inDemoInstall

is-ua-webview

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    is-ua-webview

useragent parsing for webview detection


Version published
Maintainers
1
Install size
11.4 kB
Created

Readme

Source

is-ua-webview

A super simple webview user-agent detector

Build Status

Installation

$ npm install is-ua-webview

Usage

const isWebview = require('is-ua-webview')

// just for testing:
const assert = require('assert')

// identifies googlebot as bot (returns true)
assert(isWebview('Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'))

// Android Pixel is not a bot (returns false)
assert(!isWebview('Android 7.1; Pixel Build/NDE63P)'))

Tests

Run tests

npm test

Author

Adam Eivy is a software architect by day and a drawing dad by night. Check out his latest project Beetle Royale or follow him on the interwebs

follow

gratipay Beerpay

$Crypto Tipping Jars:

  • Litecoin ($LTC): LeMkJv1Xoxnt2YvRgKkNZZJRgZYgGzcSyv
  • Bitcoin ($BTC): 1CWDM7dYLoBwJyf2kbGANAmuySwFWC2NZu
  • Ethereum ($ETH): 0xAA33bAe03131f3aa36e1de3e4bD53583c41F8d64

Keywords

FAQs

Last updated on 03 Jun 2017

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