{"library":"hpq","type":"library","category":null,"description":"hpq is a utility library designed to parse HTML strings or existing DOM elements and query their content into a structured JavaScript object. The current stable version is 1.4.0, released in March 2023, indicating a mature project with a maintenance-focused release cadence, primarily addressing minor improvements and type definitions. It operates by allowing developers to define an object shape, where values are matcher functions (e.g., `attr`, `text`, `query`) that extract specific data points from the HTML. Its key differentiator is this declarative, object-shape-driven approach to data extraction, inspired by tools like gdom, making it particularly useful for screen scraping or data transformation within a browser environment.","language":"javascript","status":"maintenance","version":"1.4.0","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hpq","imports":["import * as hpq from 'hpq';","import { parse, attr, text, query } from 'hpq';","const hpq = require('hpq');"]},{"cmd":"yarn add hpq","imports":[]},{"cmd":"pnpm add hpq","imports":[]}],"homepage":null,"github":"https://github.com/aduth/hpq","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hpq","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/hpq/compatibility"}}