js-platform
Allow to get the current user agent on your device.
Usage
import { JsPlatform } from 'js-platform';
// create a JsPlatform new instance
const Platform = new JsPlatform();
// Get the current user agent
// Print: "Hello, I'm a ios/android/desktop device!"
console.log("Hello, I'm a " + Platform.OS + " device!");
Installation
NPM
npm install --save @docomodigital/js-platform
Documentation
To read documentation, go to: