Comments (10)
👍 this is rather confusing. There's now even a third npm package: https://www.npmjs.com/package/node-uap
from uap-ref-impl.
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.
Unfortunately, I don't really have the time to fix things atm. Maybe later this year?
from uap-ref-impl.
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.
imo "JavaScript reference implementation" means something that is only for reference purposes, not for production use.
from uap-ref-impl.
so confusing, took me like 5 minutes to find this cc @tobie
from uap-ref-impl.
Hi. Is there any update on this issue?
from uap-ref-impl.
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.
@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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uap-ref-impl.