@docomodigital/js-platform

3.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @docomodigital/js-platform

Weekly Downloads

0

Version

3.0.2

License

MIT

Unpacked Size

12.2 kB

Total Files

8

Last publish

Collaborators

  • everdrone
  • blame_etc