UNPKG

ua-client-hints-js

Version:

Parse & serialize user-agent client hints (UA-CH) HTTP headers

75 lines 2.13 kB
{ "title": "UAClientHints.js", "name": "ua-client-hints-js", "version": "0.1.2", "author": "Faisal Salman <f@faisalman.com>", "description": "Parse & serialize user-agent client hints (UA-CH) HTTP headers", "type": "commonjs", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "exports": { ".": { "require": "./dist/cjs/index.js", "import": "./dist/esm/index.js" } }, "files": [ "dist" ], "directories": { "dist": "dist", "src": "src", "test": "test" }, "scripts": { "build": "npm run build:cjs && npm run build:esm", "build:cjs": "tsc --module commonjs --outDir ./dist/cjs --target es2015", "build:esm": "tsc --module esnext --moduleResolution bundler --outDir ./dist/esm --target es6", "test": "mocha ./test" }, "repository": { "type": "git", "url": "git+https://github.com/faisalman/ua-client-hints-js.git" }, "keywords": [ "ua-parser-js", "client-hints", "ua-ch", "ch-ua", "http-header", "user-agent", "user-agent-detection", "device-detection", "platform-detection", "mobile-detection", "browser-detection", "architecture-detection", "bitness-detection" ], "license": "MIT", "bugs": { "url": "https://github.com/faisalman/ua-client-hints-js/issues" }, "homepage": "https://github.com/faisalman/ua-client-hints-js#readme", "funding": [ { "type": "github", "url": "https://github.com/sponsors/faisalman" }, { "type": "opencollective", "url": "https://opencollective.com/ua-parser-js" }, { "type": "paypal", "url": "https://paypal.me/faisalman" } ], "devDependencies": { "@types/ua-parser-js": "^0.7.37", "mocha": "^10.2.0", "typescript": "^5.2.2", "ua-parser-js": "^1.0.35", "user-agent-data-types": "^0.4.2" } }