Skip to content

[WIP][Not Complete][Idea] User-Agent Client Hints library based on User-Agent.

License

Notifications You must be signed in to change notification settings

azu/ua-client-hints-parser

Repository files navigation

ua-client-hints-parser

User-Agent Client Hints library based on User-Agent.

Motivation

Existing UA parser library is large.

Almost user does not need old browser detection in the browser. So, We need to get simple API like https://github.com/WICG/ua-client-hints.

This project try it.

  • LightWeight
  • Own UA dictionary
  • Simple
  • Async API like ua-client-hints
    • User can switch to ua-client-hints API

Solution

  • The library user inject own detection dictionary
    • Use peerDependencies
  • This library/tool generate detection dictionary for needs

Install

Install with npm:

npm install ua-client-hints-parser

Usage

  • Write usage instructions

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu

About

[WIP][Not Complete][Idea] User-Agent Client Hints library based on User-Agent.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published