All Projects → Financial-Times → polyfill-useragent-normaliser

Financial-Times / polyfill-useragent-normaliser

Licence: other
No description or website provided.

Programming Languages

VCL
57 projects
javascript
184084 projects - #8 most used programming language
HCL
1544 projects

Labels

Projects that are alternatives of or similar to polyfill-useragent-normaliser

Jquery Contextmenu
jQuery contextMenu plugin & polyfill
Stars: ✭ 2,148 (+9239.13%)
Mutual labels:  polyfill
Xmlhttprequest
XMLHttpRequest.js - Standard-compliant cross-browser XMLHttpRequest object implementation
Stars: ✭ 211 (+817.39%)
Mutual labels:  polyfill
Eslint Plugin Compat
Lint the browser compatibility of your code
Stars: ✭ 2,743 (+11826.09%)
Mutual labels:  polyfill
React Anchor Link Smooth Scroll
React component for anchor links using the smooth scroll polyfill.
Stars: ✭ 186 (+708.7%)
Mutual labels:  polyfill
Jekyll Spaceship
🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
Stars: ✭ 196 (+752.17%)
Mutual labels:  polyfill
Details Element Polyfill
<details>
Stars: ✭ 221 (+860.87%)
Mutual labels:  polyfill
Object Fit Images
🗻 Polyfill object-fit/object-position on <img>: IE9, IE10, IE11, Edge, Safari, ...
Stars: ✭ 2,050 (+8813.04%)
Mutual labels:  polyfill
Pressure
👇💥 JavaScript library for handling Force Touch, 3D Touch, and Pointer Pressure.
Stars: ✭ 2,785 (+12008.7%)
Mutual labels:  polyfill
Share Api Polyfill
A polyfill for the sharing that can be used in desktop too, so your users can shere in their twitter, facebook, messenger, linkedin, sms, e-mail, print, telegram or whatsapp.
Stars: ✭ 210 (+813.04%)
Mutual labels:  polyfill
React Native Fetch Blob
This project was started in the cause of solving issue facebook/react-native#854, React Native's lacks of Blob implementation which results into problems when transferring binary data.
Stars: ✭ 2,593 (+11173.91%)
Mutual labels:  polyfill
Polyfill Intl Icu
This component provides a collection of functions/classes using the symfony/intl package when the Intl extension is not installed.
Stars: ✭ 2,287 (+9843.48%)
Mutual labels:  polyfill
Datalist Polyfill
Minimal and dependency-free vanilla JavaScript polyfill for the awesome datalist-functionality
Stars: ✭ 197 (+756.52%)
Mutual labels:  polyfill
Core Js
Standard Library
Stars: ✭ 15,854 (+68830.43%)
Mutual labels:  polyfill
Rangeslider.js
🎚 HTML5 input range slider element polyfill
Stars: ✭ 2,153 (+9260.87%)
Mutual labels:  polyfill
Poly Flif
📷 A poly-fill for the FLIF image format.
Stars: ✭ 243 (+956.52%)
Mutual labels:  polyfill
Dialog Polyfill
Polyfill for the HTML dialog element
Stars: ✭ 2,152 (+9256.52%)
Mutual labels:  polyfill
Tickedoff
Tiny library (<200B gzip) for deferring something by a "tick"
Stars: ✭ 213 (+826.09%)
Mutual labels:  polyfill
Adapter
Shim to insulate apps from spec changes and prefix differences. Latest adapter.js release:
Stars: ✭ 3,002 (+12952.17%)
Mutual labels:  polyfill
Webxr Polyfill
Use the WebXR Device API today, providing fallbacks to native WebVR 1.1 and Cardboard
Stars: ✭ 251 (+991.3%)
Mutual labels:  polyfill
Pagedjs
Display paginated content in the browser and generate print books using web technology
Stars: ✭ 228 (+891.3%)
Mutual labels:  polyfill

polyfill.io User Agent normaliser

This is the VCL & JS implementation of the User-Agent normalisation used within the polyfill-service and the polyfill-library.

Usage

For a request which was the user-agent Chrome 71.1:

Example in VCL

import "normalise-user-agent.vcl";

sub vcl_recv {
  call normalise_user_agent_1_0_6;
#   req.http.normalized_user_agent_family = "chrome";
#   req.http.normalized_user_agent_major_version = "71";
#   req.http.normalized_user_agent_minor_version = "1";
#   req.http.normalized_user_agent_patch_version = "0";
#   req.http.Normalized-User-Agent = "chrome/71.1.0";
}

Example in JS

const UA = require('@financial-times/polyfill-useragent-normaliser');

const useragent = new UA(request.headers['user-agent']);
console.log(useragent.isUnknown()); // false
console.log(useragent.satisfies("<50")); // false
console.log(useragent.satisfies(">50")); // true
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].