npm.io
0.0.4 • Published 11 years ago

steal-platform

Licence
MIT
Version
0.0.4
Deps
0
Vulns
0
Weekly
0
Stars
1

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

Keywords