{"id":18297771,"url":"https://github.com/pixu1980/detector-js","last_synced_at":"2025-07-13T07:33:43.634Z","repository":{"id":51231612,"uuid":"94231078","full_name":"pixu1980/detector-js","owner":"pixu1980","description":"DetectorJS, zero-dependency platform/environment detector written in ES6","archived":false,"fork":false,"pushed_at":"2023-05-29T13:49:34.000Z","size":3962,"stargazers_count":32,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-27T22:02:16.206Z","etag":null,"topics":["browser-detection","cpu-detection","detection","detector","detector-js","engine-detection","es6","feature-detection","gpu-detection","javascript","layout-engine-detection","library","module","npm","os-detection","platform-detection","rollup-js","useragent-parser","yarn","zero-dependency"],"latest_commit_sha":null,"homepage":"http://detector.js.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pixu1980.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-13T15:57:51.000Z","updated_at":"2025-02-22T06:03:26.000Z","dependencies_parsed_at":"2024-06-18T20:09:00.998Z","dependency_job_id":"18fe7aa2-5a7e-4be7-a793-610eea08a1b2","html_url":"https://github.com/pixu1980/detector-js","commit_stats":{"total_commits":203,"total_committers":8,"mean_commits":25.375,"dds":"0.23152709359605916","last_synced_commit":"824eebad49673a8d310a4f5ec033e1f24ed49ea1"},"previous_names":["blackmirror1980/detector-js"],"tags_count":85,"template":false,"template_full_name":null,"purl":"pkg:github/pixu1980/detector-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixu1980%2Fdetector-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixu1980%2Fdetector-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixu1980%2Fdetector-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixu1980%2Fdetector-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixu1980","download_url":"https://codeload.github.com/pixu1980/detector-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixu1980%2Fdetector-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264357302,"owners_count":23595577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser-detection","cpu-detection","detection","detector","detector-js","engine-detection","es6","feature-detection","gpu-detection","javascript","layout-engine-detection","library","module","npm","os-detection","platform-detection","rollup-js","useragent-parser","yarn","zero-dependency"],"created_at":"2024-11-05T15:04:14.777Z","updated_at":"2025-07-13T07:33:43.605Z","avatar_url":"https://github.com/pixu1980.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# detector-js\nv2.0.11\n\n## Description\nDetectorJS, zero-dependency platform/environment detector written in TypeScript\n\nPlease feel free to ask for modifications, fixes or do a PR to improve Detector behaviors or add detection rules\n\n## Author\nEmiliano \u0026#39;Pixu\u0026#39; Pisu \u0026lt;pisuemiliano.1980@gmail.com\u0026gt;\n\n## Badges\n[![NPM](https://nodei.co/npm/detector-js.png)](https://nodei.co/npm/detector-js/)\n\n[![NPM downloads/month](https://img.shields.io/npm/dm/detector-js.svg)](https://img.shields.io/npm/dm/detector-js.svg) [![GitHub stars](https://img.shields.io/github/stars/pixu1980/detector-js.svg?style=plastic)](https://github.com/pixu1980/detector-js/stargazers) [![GitHub forks](https://img.shields.io/github/forks/pixu1980/detector-js.svg?style=plastic)](https://github.com/pixu1980/detector-js/network) [![GitHub issues](https://img.shields.io/github/issues/pixu1980/detector-js.svg?style=plastic)](https://github.com/pixu1980/detector-js/issues) [![GitHub license](https://img.shields.io/github/license/pixu1980/detector-js.svg?style=plastic)](https://github.com/pixu1980/detector-js/blob/master/LICENSE) [![Build Status](https://travis-ci.org/pixu1980/detector-js.svg?branch=master)](https://travis-ci.org/pixu1980/detector-js) [![Coverage Status](https://coveralls.io/repos/github/pixu1980/detector-js/badge.svg?branch=master)](https://coveralls.io/github/pixu1980/detector-js?branch=master)\n\n## Documentation\nCheck out the [Latest Documentation](https://detector.js.org/docs/index.html) here\n\n\n## Installation\nThis is a JS/TS module available through the [npm registry](https://www.npmjs.com/). \n\nIt can be installed using either [`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally) or [`yarn`](https://yarnpkg.com/en/) package managers.\n\n```sh\nnpm i detector-js\n```\n\n```sh\nyarn add detector-js\n```\n\n## Usage\n```js\nimport { Detector } from 'detector-js';\n\nconst detector = new Detector();\n\n// It's possible to specify a custom userAgent if needed\n// const detector = new Detector('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15');\n\nconsole.log(detector);\n// {\n//   engine:{\n//     name:'WebKit',\n//     version:'605.1.15'\n//   },\n//   browser:{\n//     name:'Safari',\n//     version:'12.0.3'\n//   },\n//   os:{\n//     name:'macOS',\n//     version:'10.14.3',\n//     versionName:'Mojave'\n//   },\n//   cpu:{\n//     platform:'MacIntel',\n//     cores:1,\n//     architecture:'x64',\n//     vendor:'intel'\n//   },\n//   gpu:{\n//     webGLVendor:'WebKit',\n//     webGLRenderer:'WebKit WebGL',\n//     vendor:'Intel Inc.',\n//     model:'Intel Iris',\n//     renderer:'Intel Iris OpenGL Engine'\n//   },\n//   platform:'desktop',\n//     feature: {\n//     pointerEnabled:false,\n//     pixelRatio:1,\n//     pointerLock:true,\n//     quirksMode:false,\n//     css3D:true,\n//     cssTransform:true,\n//     cssTransition:true,\n//     deviceMotion:false,\n//     deviceOrientation:false,\n//     contextMenu:false,\n//     classList:false,\n//     placeholder:true,\n//     viewportUnit:true,\n//     remUnit:true,\n//     canvas:true,\n//     svg:true,\n//     webGL:true,\n//     webVR:false,\n//     touch:false,\n//     forceTouch:true,\n//     srcset:true,\n//     sizes:true,\n//     pictureElement:true,\n//     dialogElement:false,\n//     addEventListener:true,\n//     asyncScript:true,\n//     battery:false,\n//     cors:true,\n//     deferScript:true,\n//     file:true,\n//     fileSystem:false,\n//     fullscreen:true,\n//     fullscreenKeyboard:true,\n//     geolocation:true,\n//     historyAPI:true,\n//     littleEndian:false,\n//     localStorage:true,\n//     matchMedia:true,\n//     querySelector:true,\n//     querySelectorAll:true,\n//     serviceWorker:true,\n//     typedArray:true,\n//     userMedia:false,\n//     vibration:false,\n//     worker:true,\n//     audio:{\n//       supported:true,\n//       context:true,\n//       formats:{\n//         mp3:true,\n//         webm:false,\n//         ogg:false,\n//         opus:false,\n//         wav:true,\n//         m4a:true\n//       }\n//     },\n//     video:{\n//       supported:true,\n//       formats:{\n//         mp4:true,\n//         ogv:false,\n//         webm:false\n//       }\n//     }\n//   }\n// }\n```\n\n## Todo\n- refine browsers regexes\n- refine documentation\n- implement modular custom build feature\n- decide to implement or not device infos detection\n\n## Dependencies\n- [@detector-js/core](https://ghub.io/@detector-js/core): DetectorJS Core Module\n- [@detector-js/feature](https://ghub.io/@detector-js/feature): DetectorJS Feature Module\n- [@detector-js/hardware](https://ghub.io/@detector-js/hardware): DetectorJS Hardware Module\n- [@detector-js/software](https://ghub.io/@detector-js/software): DetectorJS Software Module\n- [@detector-js/detector](https://ghub.io/@detector-js/detector): DetectorJS Detector Module\n\n## Dev Dependencies\n- [@parcel/packager-ts](https://ghub.io/@parcel/packager-ts): DetectorJS, zero-dependency platform/environment detector written in TypeScript\n- [@parcel/transformer-typescript-types](https://ghub.io/@parcel/transformer-typescript-types): DetectorJS, zero-dependency platform/environment detector written in TypeScript\n- [@types/node](https://ghub.io/@types/node): TypeScript definitions for Node.js\n- [lerna](https://ghub.io/lerna): Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository\n- [parcel](https://ghub.io/parcel): Blazing fast, zero configuration web application bundler\n- [pkg-2-readme](https://ghub.io/pkg-2-readme): Generate a README.md from package.json contents\n- [standard-version](https://ghub.io/standard-version): replacement for `npm version` with automatic CHANGELOG generation\n- [typedoc](https://ghub.io/typedoc): Create api documentation for TypeScript projects.\n- [typescript](https://ghub.io/typescript): TypeScript is a language for application scale JavaScript development\n\n\n\n## License\nMIT\n\n## Powered By\n\u003ca href=\"http://js.org\" target=\"_blank\" title=\"JS.ORG | JavaScript Community\"\u003e\n\u003cimg src=\"http://logo.js.org/dark_horz.png\" width=\"102\" alt=\"JS.ORG Logo\"/\u003e\u003c/a\u003e\n\u003c!-- alternatives [bright|dark]_[horz|vert|tiny].png (width[horz:102,vert:50,tiny:77]) --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixu1980%2Fdetector-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixu1980%2Fdetector-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixu1980%2Fdetector-js/lists"}