GithubHelp home page GithubHelp logo

is it npm ua-parser? about uap-ref-impl HOT 10 OPEN

zowers avatar zowers commented on August 11, 2024
is it npm ua-parser?

from uap-ref-impl.

Comments (10)

josip avatar josip commented on August 11, 2024 1

👍 this is rather confusing. There's now even a third npm package: https://www.npmjs.com/package/node-uap

from uap-ref-impl.

connesc avatar connesc commented on August 11, 2024 1

I will end by using the useragent package, which is widely used, and internally fetches the up-to-date regexes.yaml from ua-parser/uap-core.

from uap-ref-impl.

tobie avatar tobie commented on August 11, 2024 1

Unfortunately, I don't really have the time to fix things atm. Maybe later this year?

from uap-ref-impl.

connesc avatar connesc commented on August 11, 2024

I agree, since the split of tobie/ua-parser to the uaparser project space, things became rather confusing for JavaScript users.

From what I understand:

  • ua-parser/uap-core now wraps the up-to-date regexes.yaml, which contains the core definitions, shared by all language implementations.
  • tobie/ua-parser is the legacy repository, which holds its own outdated regexes.yaml. Apparently, this is what is currently published as ua-parser on npm.
  • ua-parser/uap-ref-impl is supposed to be the official JavaScript reference implementation, as stated here. It sounds like a replacement for the deprecated tobie/ua-parser, but it is not what happened yet (no documentation, no tests, low usage on npm, ...).

Any clarification is welcomed about this 😃.
I'm particularly interested on how JavaScript users are supposed to work with the up-to-date regexes.yaml now.

from uap-ref-impl.

zowers avatar zowers commented on August 11, 2024

imo "JavaScript reference implementation" means something that is only for reference purposes, not for production use.

from uap-ref-impl.

vladikoff avatar vladikoff commented on August 11, 2024

so confusing, took me like 5 minutes to find this cc @tobie

from uap-ref-impl.

vcarel avatar vcarel commented on August 11, 2024

Hi. Is there any update on this issue?

from uap-ref-impl.

tobie avatar tobie commented on August 11, 2024

Unfortunately no. Would love to clean this mess up if someone was willing to sponsor the work. Can't afford the time away from client work otherwise. :(

from uap-ref-impl.

fedot avatar fedot commented on August 11, 2024

@josip as a node-uap packager, I would love to see the ua-parser/uap-core package published to npm registry. That way I could be using ua-parser/uap-ref-impl directly (and contributing to it instead of rolling my wrap-up)

from uap-ref-impl.

LinusU avatar LinusU commented on August 11, 2024

Spent time trying to figure out this as well 😄 very confusing...

In the end I decided to go with useragent, it works great!

from uap-ref-impl.

Related Issues (7)

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.