@docomodigital/js-platform

Allow to get the current user agent on your device.

Usage no npm install needed!

<script type="module">
  import docomodigitalJsPlatform from 'https://cdn.skypack.dev/@docomodigital/js-platform';
</script>

README

js-platform

npm version

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:

http://docomodigital.github.io/js-utils/js-platform/latest