chopper.js

A modern universal device detection package

Usage no npm install needed!

<script type="module">
  import chopperJs from 'https://cdn.skypack.dev/chopper.js';
</script>

README

chopper.js

Chopper.js is a modern device detection framework that uses node.js. It detects a mobile, tablet and desktop device in the browser and on the server.

var device = new deviceLib.DeviceDetect();
console.log(device.isDesktop());