client-probe

A JS utility to probe user client for OS and browser being used and represent it in CSS and JS.

What does it do?

Client Probe does browser and OS detection using userAgent string supplied by the browser and then adds flags as an attribute value of <body> (to use in a selector in CSS) and as a Boolean flag on provided object to use it in JS. Learn more on how to use it in your project here.

Demo please!

Open this webpage in your browser of choice and the section below will show platform and browser details using CSS flags set by client-prob.

You are running

On Operating System

How to revert the effect?

Just call clearFlags() on clientProbe object to clear all the flags!