Coder Social home page Coder Social logo

ahmdrza / detect-browser Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 8.0 89 KB

A JavaScript library to detect browser properties like browser name, device, OS, referrer, timezone, screen resolution and much more.

License: MIT License

JavaScript 91.32% HTML 8.68%

detect-browser's Introduction

Hi there ๐Ÿ‘‹

I am a Software Engineer with about 5 years of experience in developing robust, highly performative, scalable, and secure applications.

I have quite a diverse experience of working on different projects like CRM, real-time bidding application, auction search engine (UI), e-commerce for college courses (UI), and a Travel social network.

Recently, I have started working at Careem (first Unicorn in MENAP), and I โค it.

Skills

Programming languages / Frameworks

  • JavaScript, TypeScript, Reactjs, Nextjs, Redux, Context API, React Native, Nodejs, Nestjs, Php, Laravel, Angular, GraphQL

Database

  • MySQL, PostgreSQL

Design Frameworks

  • Ant Design (React), Material UI (React), Bootstrap

Tools / Libraries

  • Socket.IO, Redis, JWT, Git, jQuery, Sequelize, React Query

Payment Gateways

  • Stripe, Authorize.net

๐Ÿ“ My Status

Ahmad's GitHub stats

detect-browser's People

Contributors

ahmdrza avatar jasonbenett avatar vacekj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

detect-browser's Issues

Tagged Version

We're using your code in an Firefox Extension and their guidelines ask to link to specific tagged version of third party libraries, if you could add a tag for the latest version we'd appreciate it very much, thank you.

Safary

if (/constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === '[object SafariRemoteNotification]'; })(!window['safari'])) { return 'Safari'; }

the code !window['safari'] will always return true or false, so the code p.toString() will always return 'true' or 'false', so the code p.toString() === '[object SafariRemoteNotification]' will always return false.

Am I right?

New issue in regex expression for new android version (12)

I found this issue when I try your code in my Android 12. It didn't found match with that regex because the navigator.appVersion is: "appVersion: 5.0 (Linux; Android 12; IN2013) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.58 Mobile Safari/537.36"
I fixed it adding a filter in the "." between expressions and the next number. I don't know if you already solved it but I'll leave it here just in case.

image

Browser detection failures

It seems some browser detection currently fail.

For example, the method used to know if the currently browser is Chrome is also verified by Edge. So if you are using Edge, the returned Browser name can be Chrome. The order of the detection steps is important too. If you want, I can make you a pull request to give you my solution to resolve some of the mistakes I found and you can test with your own test cases.

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.