Skip to content

f2etw/detect-inapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detect InApp

detect browser or in-app information for mobile

Build Status codecov npm downloads js-standard-style Commitizen friendly semantic-release

Code Example

import InApp from 'detect-inapp';

const inapp = new InApp(navigator.userAgent || navigator.vendor || window.opera);

Installation

yarn add detect-inapp

API Reference

  • inapp.isMobile

  • inapp.isDesktop

  • inapp.isInApp

  • inapp.browser

values: 'messenger', 'facebook', 'line', 'twitter', 'wechat', 'miui', 'instagram', 'chrome', 'safari', 'ie', 'firefox'

License

MIT License