An open API service indexing awesome lists of open source software.

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

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