Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ngot/devicejs
- Owner: ngot
- Created: 2014-02-21T15:29:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-06-07T15:22:02.000Z (over 4 years ago)
- Last Synced: 2024-10-28T06:29:18.456Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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.