{"id":17736708,"url":"https://github.com/parro-it/screen-info","last_synced_at":"2025-05-07T21:43:46.315Z","repository":{"id":66074157,"uuid":"74381296","full_name":"parro-it/screen-info","owner":"parro-it","description":"Multiplatform screen \u0026 monitors info","archived":false,"fork":false,"pushed_at":"2020-06-03T03:27:51.000Z","size":2191,"stargazers_count":31,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-15T00:06:10.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/parro-it.png","metadata":{"files":{"readme":"readme.md","changelog":null,"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":"2016-11-21T16:11:11.000Z","updated_at":"2024-03-20T06:56:26.000Z","dependencies_parsed_at":"2023-03-31T11:21:16.962Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/screen-info","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fscreen-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fscreen-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fscreen-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fscreen-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/screen-info/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252961812,"owners_count":21832189,"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":[],"created_at":"2024-10-26T00:24:08.715Z","updated_at":"2025-05-07T21:43:46.293Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# screen-info\n\n[![greenkeeper](https://badges.greenkeeper.io/parro-it/screen-info.svg)](https://greenkeeper.io/)\n[![travis ci](https://img.shields.io/travis/parro-it/screen-info/master.svg)](http://travis-ci.org/parro-it/screen-info)\n[![npm version](https://img.shields.io/npm/v/screen-info.svg)](https://npmjs.org/package/screen-info)\n[![appveyor ci](https://ci.appveyor.com/api/projects/status/0j904vwgk43vuh3h/branch/master?svg=true)](https://ci.appveyor.com/project/parro-it/screen-info)\n[![npm downloads](https://img.shields.io/npm/dt/screen-info.svg)](https://npmjs.org/package/screen-info)\n\n\u003e A native multiplatform module to query the system OS for displays info.\n\n## Usage\n\nGet current screen info \u0026 print it to console:\n\n```js\nimport Screen from \".\";\n\nconst mainScreen = Screen.main();\nconsole.log(`\n  Current screen size is ${mainScreen}\n  ${mainScreen.width} pixels width,\n  ${mainScreen.height} pixels height,\n  ${mainScreen.widthMM} mm width,\n  ${mainScreen.heightMM} mm height,\n  ${mainScreen.colorDepth} bits per pixels\n`);\n```\n\nThis will output\n\n```\n  Current screen size is 1920x1080x24\n  1920 pixels width,\n  1080 pixels height,\n  360 mm width,\n  210 mm height,\n  24 bits per pixels\n```\n\n## API\n\n```js\nmain: () =\u003e {width:number, height: number, colorDepth: number}\n```\n\nreturn the size and color depth of default system display\n\n```js\nall: () =\u003e [{ width: number, height: number, colorDepth: number }];\n```\n\nreturn the size and color depth of all system displays\n\n## Install\n\nWith [npm](https://npmjs.org/) installed, run\n\n```\n$ npm install screen-info\n```\n\n## See Also\n\n* [`noffle/common-readme`](https://github.com/noffle/common-readme)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fscreen-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Fscreen-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fscreen-info/lists"}