GithubHelp home page GithubHelp logo

aberba / device-detect-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryanburgess/device-detect

0.0 2.0 0.0 244 KB

JavaScript module to check if user agent to return the device and browser.

JavaScript 100.00%

device-detect-1's Introduction

Device Detect

JavaScript module to check if user agent to return the device and browser.

Install

npm install device-detect --save-dev

Use

var deviceDetect = require('device-detect')();

// return all device and browser object
console.log(deviceDetect);

// result example:
/* {
  "device":"Macintosh",
  "browser":"Chrome"
} */

console.log(deviceDetect.device); // returns Macintosh
console.log(deviceDetect.browser); // returns Chrome

Supported

Devices:

  • iPhone
  • iPad
  • iPod
  • Blackberry
  • WindowsMobile
  • Android
  • Macintosh
  • Windows
  • Linux

Browsers:

  • Chrome
  • Opera
  • Firefox
  • IE
  • Safari

Release History

  • 1.0.7: Update test script.
  • 1.0.6: Add test.js.
  • 1.0.6: Add Linux detection.
  • 1.0.5: Update documentation.
  • 1.0.4: Add support for Windows Mobile.
  • 1.0.3: Update documentation.
  • 1.0.2: Update description.
  • 1.0.1: Update documentation.
  • 1.0.0: Initial release.

Contributing

  1. Fork it
  2. Run npm install
  3. Run Grunt watch grunt watch
  4. Create your feature branch (git checkout -b my-new-feature)
  5. Commit your changes (git commit -am "Add some feature")
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

License

MIT © Ryan Burgess

device-detect-1's People

Contributors

ryanburgess avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.