{"library":"metaviewport-parser","type":"library","category":null,"description":"The `metaviewport-parser` library, currently at version 0.3.0, provides a robust parser and interpreter for the `content` attribute within HTML `<meta name=\"viewport\">` declarations. It implements the algorithms specified in the W3C CSS Device Adaption specification, enabling developers to programmatically analyze and understand how viewport configurations affect rendering. The library offers `parseMetaViewPortContent` to break down the attribute string into valid, unknown, and invalid properties, and `getRenderingDataFromViewport` to interpret these properties against supplied browser dimensions to calculate initial width, height, zoom, and user-scalability. As a pre-1.0 package, its API should be considered experimental and may undergo changes. Its key differentiator is strict adherence to web standards for accurate viewport parsing, making it valuable for server-side rendering, testing tools, or dynamic content adaptation logic.","language":"javascript","status":"active","version":"0.3.0","tags":["javascript"],"install":[{"cmd":"npm install metaviewport-parser","imports":["const metaparser = require('metaviewport-parser');","const { parseMetaViewPortContent } = require('metaviewport-parser');","const { getRenderingDataFromViewport } = require('metaviewport-parser');"]},{"cmd":"yarn add metaviewport-parser","imports":[]},{"cmd":"pnpm add metaviewport-parser","imports":[]}],"homepage":null,"github":"https://github.com/dontcallmedom/metaviewport-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/metaviewport-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/metaviewport-parser/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}