User-Agent Client Hints library based on User-Agent.
Existing UA parser library is large.
- https://bundlephobia.com/[email protected]
- https://bundlephobia.com/[email protected]
- https://bundlephobia.com/[email protected]
- https://bundlephobia.com/[email protected]
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
- The library user inject own detection dictionary
- Use peerDependencies
- This library/tool generate detection dictionary for needs
- This idea is inspired by browserslist-user-agent-regexp
Install with npm:
npm install ua-client-hints-parser
- Write usage instructions
See Releases page.
Install devDependencies and Run npm test
:
npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT © azu