Skip to content

Commit

Permalink
README fix
Browse files Browse the repository at this point in the history
  • Loading branch information
omrilotan committed May 2, 2024
1 parent 344fa17 commit 66cb401
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,28 @@ app.get("/api-endpoint", (req, res) => {
All detections return `undefined` if the relevant header is not available.
| Feature | Type | Header | Meaning | Adoption level |
| --------------------------------------- | --------- | --------------------------------------- | ---------------------------------------- | -------------- |
| `arch`, `architecture` | _string_ | Sec-CH-UA-Arch | CPU architecture | Experimental |
| `contentDpr`, `contentDevicePixelRatio` | _number_ | Content-DPR | Image device pixel ratio | Deprecated |
| `deviceMemory` | _number_ | Device-Memory | Appr. available RAM | Experimental |
| `downlink` | _number_ | Downlink | Network speed (Mbps) | Experimental |
| `dpr`, `devicePixelRatio` | _number_ | DPR | Device pixel ratio | Deprecated |
| `dpr`, `devicePixelRatio` | _string_ | Content-DPR | Image device to pixel ratio | Experimental |
| `ect`, `effectiveConnectionType` | _string_ | ECT | Network profile (G) | Experimental |
| `fetchDest`, `fetchDestination` | _string_ | Sec-Fetch-Dest | Resource type |
| `fetchMode` | _string_ | Sec-Fetch-Mode | Navigation type |
| `fetchSite` | _string_ | Sec-Fetch-Site | Relationship to origin |
| `fetchUser` | _boolean_ | Sec-Fetch-User | Was the request triggered by user action |
| `mobile` | _boolean_ | Sec-CH-UA-Mobile | Boolean: Is this a mobile device | Experimental |
| `model` | _string_ | Sec-CH-UA-Model | Device model | Experimental |
| `platform` | _string_ | Sec-CH-UA-Platform | Operating system name | Experimental |
| `platformVersion` | _string_ | Sec-CH-UA-Platform-Version | Operating system version | Experimental |
| `purpose` | _string_ | Sec-Purpose | Resource purpose (prefetch) | Experimental |
| `vendorName` | _string_ | Sec-CH-UA / Sec-CH-UA-Full-Version-List | User Agent vendor version list | Experimental |
| `vendorVersion` | _string_ | Sec-CH-UA-Full-Version | User agent vendor version | Experimental |
| `viewportWidth` | _number_ | Viewport-Width | Layout viewport width | Deprecated |
| `width` | _number_ | Width | Resource desired width | Deprecated |
| Feature | Type | Header | Meaning | Adoption level |
| --------------------------------------- | --------- | ---------------------------------------------------------------- | ---------------------------------------- | -------------- |
| `arch`, `architecture` | _string_ | Sec-CH-UA-Arch | CPU architecture | Experimental |
| `contentDpr`, `contentDevicePixelRatio` | _number_ | Content-DPR | Image device pixel ratio | Deprecated |
| `deviceMemory` | _number_ | Device-Memory | Appr. available RAM | Experimental |
| `downlink` | _number_ | Downlink | Network speed (Mbps) | Experimental |
| `dpr`, `devicePixelRatio` | _number_ | DPR | Device pixel ratio | Deprecated |
| `dpr`, `devicePixelRatio` | _string_ | Content-DPR | Image device to pixel ratio | Experimental |
| `ect`, `effectiveConnectionType` | _string_ | ECT | Network profile (G) | Experimental |
| `fetchDest`, `fetchDestination` | _string_ | Sec-Fetch-Dest | Resource type |
| `fetchMode` | _string_ | Sec-Fetch-Mode | Navigation type |
| `fetchSite` | _string_ | Sec-Fetch-Site | Relationship to origin |
| `fetchUser` | _boolean_ | Sec-Fetch-User | Was the request triggered by user action |
| `mobile` | _boolean_ | Sec-CH-UA-Mobile | Boolean: Is this a mobile device | Experimental |
| `model` | _string_ | Sec-CH-UA-Model | Device model | Experimental |
| `platform` | _string_ | Sec-CH-UA-Platform | Operating system name | Experimental |
| `platformVersion` | _string_ | Sec-CH-UA-Platform-Version | Operating system version | Experimental |
| `purpose` | _string_ | Sec-Purpose | Resource purpose (prefetch) | Experimental |
| `vendorName` | _string_ | Sec-CH-UA / Sec-CH-UA-Full-Version-List | Browser Name | Experimental |
| `vendorVersion` | _string_ | Sec-CH-UA-Full-Version / Sec-CH-UA / Sec-CH-UA-Full-Version-List | Browser version | Experimental |
| `viewportWidth` | _number_ | Viewport-Width | Layout viewport width | Deprecated |
| `width` | _number_ | Width | Resource desired width | Deprecated |
## Client Hints Intruction Response Header
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@babel/preset-env": "^7.16.11",
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
"@types/jest": "^29.5.5",
"esbuild": "^0.19.4",
"esbuild": "^0.20.2",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
Expand Down

0 comments on commit 66cb401

Please sign in to comment.