Skip to content
This repository has been archived by the owner on Mar 5, 2019. It is now read-only.

DVS-devtools/js-platform

Repository files navigation

js-platform

[!!!] The source code of this package is on https://github.com/docomodigital/js-utils, this repository will be removed asap

Build Status Coverage Status npm version Greenkeeper badge

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-platform/latest

or run the following command insite the js-platform folder:

npm run doc:open

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published