Detects common platforms. Use when special logic is needed (such as needing to specify a full URL for Ajax requests when using Cordova.
npm install steal-platform --save
var platform = require("steal-platform");
if(platform.isDesktopBrowser) {
...
}
MIT