Coder Social home page Coder Social logo

Comments (6)

wamoyo avatar wamoyo commented on June 17, 2024 2

I'd love to know the viewport width or device width.

from express-device.

renancouto avatar renancouto commented on June 17, 2024

Well I don't know if this is not an out of scope, but some feature detection would be nice. Like testing for touch events! I know that Modernizr does that pretty good, but it would be awesome if we could get that information before the client.

from express-device.

mklemme avatar mklemme commented on June 17, 2024

How about the option for a user to force desktop - or other - view. E.g. "switch to desktop site" would set an ignore variable or other solution.

from express-device.

arvidkahl avatar arvidkahl commented on June 17, 2024

If a function like get_type could somehow yield which device was recognized (instead of just the type), that would be splendid - even it it was just the part of the regex that matched. A full device name string would be incredibly useful though. get_device_name would make this already great lib magical. That and the force-desktop mode mentioned.

from express-device.

cbanbury avatar cbanbury commented on June 17, 2024

Hi, would it be possible to add a list of custom rules to the config. It would be nice to add custom filters for specific user agent strings that are either missing or that are special cases and to be treated differently.

from express-device.

rguerreiro avatar rguerreiro commented on June 17, 2024

For version 0.4.0 I'll be adding support for express v4.0. For the versions after that I'll start to pick some of your ideas. Thank you for all the input. Keep it coming ;)

from express-device.

Related Issues (20)

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.