https://github.com/stealjs/platform
Detects which platform is being used
https://github.com/stealjs/platform
Last synced: 2 months ago
JSON representation
Detects which platform is being used
- Host: GitHub
- URL: https://github.com/stealjs/platform
- Owner: stealjs
- License: mit
- Created: 2015-06-12T20:25:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-22T01:03:47.000Z (almost 8 years ago)
- Last Synced: 2025-03-07T14:07:12.519Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/steal-platform
- Size: 4.88 KB
- Stars: 1
- Watchers: 12
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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
```shell
npm install steal-platform --save
```## Use
```js
var platform = require("steal-platform");if(platform.isDesktopBrowser) {
...
}
```## License
MIT