@docomodigital/js-platform
v3.0.2
Published
[](https://badge.fury.io/js/%40docomodigital%2Fjs-platform)
Readme
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-platformDocumentation
To read documentation, go to:
