npm · npm:use-device-pixel-ratio
use-device-pixel-ratio active
React hook for finding device pixel ratio (DPR), optionally capping/rounding
The latest stable version of use-device-pixel-ratio is 1.1.2, published on 2022-12-13. Verified by Vigia on 2026-11-12.
| Latest stable version | 1.1.2 |
|---|---|
| Published | 2022-12-13 18:19:17 UTC |
| Install | npm install use-device-pixel-ratio@latest |
| Requires (engines) | none declared |
| Peer dependencies | react >=16.8.0 |
| Dist-tags | latest: 1.1.2 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 13:26:37 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | dormant |
|---|---|
| Last stable release | 2022-12-13 18:19:17 UTC · 1430 days ago |
| Stable releases in the last 12 months | 0 |
| Published versions | 5 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
1.1.2 | 2022-12-13 18:19:17 UTC |
1.1.1 | 2022-12-13 18:18:06 UTC |
1.1.0 | 2021-09-01 09:19:34 UTC |
1.0.1 | 2021-08-31 15:21:05 UTC |
1.0.0 | 2021-08-31 15:19:12 UTC |
Showing the 5 most recent of 5 versions. JSON
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of use-device-pixel-ratio?
The latest stable version of use-device-pixel-ratio is 1.1.2, published on 2022-12-13. Verified by Vigia on 2026-11-12.
How do I install the latest version of use-device-pixel-ratio?
Run npm install use-device-pixel-ratio@latest. The latest stable version is 1.1.2 (verified 2026-11-12).
Is use-device-pixel-ratio deprecated?
No. use-device-pixel-ratio is not marked as deprecated in the registry.
Which Node.js version does use-device-pixel-ratio require?
use-device-pixel-ratio 1.1.2 does not declare a Node.js version requirement.
Does use-device-pixel-ratio 1.1.2 have known vulnerabilities?
No known advisories affect use-device-pixel-ratio 1.1.2 according to the data Vigia checks.
Is use-device-pixel-ratio still maintained?
use-device-pixel-ratio published 0 stable releases in the last 12 months; the most recent was 1430 days ago. Activity: dormant.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- react
- @discordjs/formatters
- progress-webpack-plugin
- error-callsites
- graphology-traversal
- @types/parse-package-name
- type-flag
- lodash._baseisequal
- exports-loader
- @scalar/core
- use-editable
- @inversifyjs/container
- eckles
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/use-device-pixel-ratio) [](https://vigia.coredls.cloud/npm/use-device-pixel-ratio) [](https://vigia.coredls.cloud/npm/use-device-pixel-ratio)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/use-device-pixel-ratio
GET https://vigia.coredls.cloud/v1/packages/npm/use-device-pixel-ratio/versions/{version}