Skip to content

xboy2012/is-useragent-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-useragent-ios

Install

npm i is-useragent-ios

Usage

import isUserAgentIOS from 'is-useragent-ios'

// get UA string from navigator or somewhere else
const ua = navigator.userAgent

// invoke the method
const isIOS = isUserAgentIOS(ua)

// outputs whether the browser is iOS
console.log(isIOS)

About

detect if the userAgent is iOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published