{"id":20631621,"url":"https://github.com/fcor/ppi","last_synced_at":"2025-03-08T22:35:51.550Z","repository":{"id":57329218,"uuid":"91030034","full_name":"fcor/ppi","owner":"fcor","description":"PPI Calculator NPM package","archived":false,"fork":false,"pushed_at":"2017-05-12T13:08:25.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-08T14:44:45.546Z","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/fcor.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}},"created_at":"2017-05-11T22:53:25.000Z","updated_at":"2023-09-07T06:00:42.000Z","dependencies_parsed_at":"2022-09-01T09:40:30.653Z","dependency_job_id":null,"html_url":"https://github.com/fcor/ppi","commit_stats":null,"previous_names":["litz15/ppi"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcor%2Fppi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcor%2Fppi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcor%2Fppi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcor%2Fppi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcor","download_url":"https://codeload.github.com/fcor/ppi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242619114,"owners_count":20159001,"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-11-16T14:13:03.973Z","updated_at":"2025-03-08T22:35:51.527Z","avatar_url":"https://github.com/fcor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PPI Calculator\n\nppicalculator calculates pixels per inch for a certain screen\n\n## Description\n\nPPI is a bit more correct, but DPI is the more common term. If you are interested, you can read more in this [Wikipedia Article](https://en.wikipedia.org/wiki/Pixel_density).\n\n## Install\n\n```\nnpm install ppicalculator\n```\n\n## Usage\n\nppi(hRes, vRes, diagSize)\n\nhRes: Horizontal resolution in Pixels\n\nvRes: Vertical resolution in Pixels\n\ndiagSize: Diagonal size in inches\n\n```\nimport ppi from 'ppicalculator'\n\nppi(1980, 1080, 13.3) // 166\n\n```\n\n## Credits\n\n[Fabio Cortés](https://twitter.com/fabiojcortes)\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcor%2Fppi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcor%2Fppi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcor%2Fppi/lists"}