Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ngot/devicejs

Devicejs is a runtime detecting tool.
https://github.com/ngot/devicejs

Last synced: about 1 month ago
JSON representation

Devicejs is a runtime detecting tool.

Awesome Lists containing this project

README

        

###Devicejs

[![NPM](https://nodei.co/npm/devicejs.png)](https://nodei.co/npm/devicejs/)

[![Build Status](https://travis-ci.org/ngot/devicejs.png?branch=master)](https://travis-ci.org/ngot/devicejs)

######Devicejs is a library with which you can easily detect the client environment, convenient the web development.

##Installation

*Install with npm:*
```
$ npm install devicejs
```

*Install with bower:*
```
$ bower install device
```

##usage

```
var device = require("devicejs");
console.log(device.platform);
```

##APIs

*refer to Node.js* [OS](http://nodejs.org/api/os.html#os_os) api for full usage. They are just the
same.