Code Monkey home page Code Monkey logo

infuzzy's Introduction

Infuzzy JS

Infuzzy.js is a light wheight javascript framework that greatly detect browser and OS information taken from 'Navigator' object, the information is retrieved as json, no need of server side technology, everything on client side. It is focused on making you, the developer, get stats and information about your site or app, like most used browsers and operational systems that visit you everyday, beyond that, you can track bot traffic, indentify browser that not support your app's feature and lots of uses, all of this in only one function. Simple, fast and powerful.

Installing

Package manager is not available yet, but it is planned when infuzzy get its 1.0 version. For getting started to test infuzzy, import the JS file infuzzy.js on your web app, that's all you need to do.

<script src="infuzzy.js"></script>

Running the tests

Call function sayHi() to check if everything's ok.

infuzzy.sayHi(); // Hello, Stranger

if infuzzy call you 'stranger', everything's is ok, up and running. Yes, it is a reference from closer

Usage

All you need to do is call the function getInfo()

var report = infuzzy.getInfo();

Object Format

Example of returned object from infuzzy.getinfo()

{
  "browserName": "Chrome",
  "browserVersion": "53.0.2785.116",
  "browserVersionShort": "53",
  "osName": "Windows",
  "osVersion": "7",
  "userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36",
  "device": "Desktop",
  "language": "pt-BR",
  "isBot": false,
  "url": "http://domain.com/page",
  "ip": null
}

**ip will be always null, it is part of infuzzy object to let you use it with Third-party API or something like that since is not possible get IP Address in the client side. Use it or not, it's up to you **

Support

Infuzzy is in development, till now we have the support bellow:

  • Browsers | all versions
    • Chrome
    • Firefox
  • SO | all versions
    • Windows
    • Android
  • Platform
    • Desktop
    • Mobile
  • Game Consoles
    • Xbox 360
    • Xbox One
  • Bots
    • MJ12bot
    • Googlebot
    • AdsBot-Google-Mobile
    • bingbot
    • SimplePie
    • BingPreview
    • Yahoo! Slurp
    • SiteLockSpider
    • okhttp
    • curl
    • ips-agent
    • BLEXBot
    • YandexBot
    • ScoutJet

To Do

  • Browsers
    • Internet Explorer
    • Edge
    • Safari
    • Opera
    • UC
    • Iron
    • Seamonkey
  • OS
    • Linux
    • Mac Os
    • Firefox OS
    • Chrome OS
    • Blackberry
    • IOS

Authors

  • Marcos Mendes - @marcoshmendes

License

This project is licensed under the MIT License

infuzzy's People

Contributors

marcoshmendes avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mahongtao

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.