Detects which platform is being used
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.editorconfig
.gitignore
LICENSE.md
README.md
package.json
platform.js

README.md

steal-platform

Detects common platforms. Use when special logic is needed (such as needing to specify a full URL for Ajax requests when using Cordova.

Install

npm install steal-platform --save

Use

var platform = require("steal-platform");

if(platform.isDesktopBrowser) {
 ...
}

License

MIT