ismobilejs
- Version 1.1.1
- Published
- 82.5 kB
- No dependencies
- MIT license
Install
npm i ismobilejs
yarn add ismobilejs
pnpm add ismobilejs
Overview
A simple JS library that detects mobile devices.
Index
Functions
Type Aliases
Functions
function isMobile
isMobile: (param?: IsMobileParameter) => isMobileResult;
Type Aliases
type IsMobileParameter
type IsMobileParameter = UserAgent | Navigator;
type isMobileResult
type isMobileResult = { apple: { phone: boolean; ipod: boolean; tablet: boolean; universal: boolean; device: boolean; }; amazon: { phone: boolean; tablet: boolean; device: boolean; }; android: { phone: boolean; tablet: boolean; device: boolean; }; windows: { phone: boolean; tablet: boolean; device: boolean; }; other: { blackberry: boolean; blackberry10: boolean; opera: boolean; firefox: boolean; chrome: boolean; device: boolean; }; phone: boolean; tablet: boolean; any: boolean;};
type Navigator
type Navigator = { userAgent: string; platform: string; maxTouchPoints?: number;};
type UserAgent
type UserAgent = string;
Package Files (2)
Dependencies (0)
No dependencies.
Dev Dependencies (7)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/ismobilejs
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/ismobilejs)
- HTML<a href="https://www.jsdocs.io/package/ismobilejs"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 4432 ms. - Missing or incorrect documentation? Open an issue for this package.