Inapp Spy
favorisiert
JavaScript-Paket
detect in-app browsers
Frontend-only browser detection for popular operating systems and browsers on JS
Frontend-only browser detection for popular operating systems and browsers in JavaScript without dependencies.
This package is intended for browser runtimes only. It relies on browser APIs such as navigator and should not be used in SSR or backend Node.js code.
npm i detectos.js
yarn add detectos.js
bower i detectos.js
import DetectOS from 'detectos.js'
const Detect = new DetectOS()
console.log('We know your browser – it\'s ' + Detect.browser + ' ' + Detect.version);
console.log('We know your OS – it\'s ' + Detect.OS);
console.log('We know everything about you.');
If you instantiate the class outside a browser, it throws an explicit browser-only error. For tests, you can pass a browser-like environment object:
const Detect = new DetectOS({
navigator: {
userAgent: 'Mozilla/5.0 ... Chrome/122.0.0.0 Safari/537.36',
appVersion: '5.0',
vendor: 'Google Inc.',
platform: 'MacIntel'
},
window: {}
})
Used on MobiDevices
detect in-app browsers
MCP server for Chrome DevTools
The headless rich text editor framework for web artisans.
Streaming torrent client
Neue Version verfügbar.