{"library":"hast-util-has-property","type":"library","category":null,"description":"hast-util-has-property is a focused utility within the unified (specifically HAST) ecosystem, designed to ascertain if a given HAST (Hypertext Abstract Syntax Tree) element node possesses a specified property. The current stable version is 3.0.0. This package is maintained by the syntax-tree collective, aligning its release cadence with Node.js LTS versions and the broader `unified` project's evolution, frequently releasing new major versions to adopt modern JavaScript features like ESM. Its primary differentiation lies in its tight integration with the HAST specification, providing a type-safe (TypeScript-enabled) and robust method for property checking, crucial for HTML processing pipelines. It is a highly specialized tool, typically used by developers working directly with HAST manipulation, offering a reliable primitive for conditional logic based on element properties in transform plugins. It strictly operates on valid HAST `Node` objects, particularly `Element` types, providing a precise `boolean` result.","language":"javascript","status":"active","version":"3.0.0","tags":["javascript","unist","hast","hast-util","util","utility","html","element","property","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-has-property","imports":["import { hasProperty } from 'hast-util-has-property'","import { hasProperty } from 'https://esm.sh/hast-util-has-property@3'"]},{"cmd":"yarn add hast-util-has-property","imports":[]},{"cmd":"pnpm add hast-util-has-property","imports":[]}],"homepage":null,"github":"https://github.com/syntax-tree/hast-util-has-property","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hast-util-has-property","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/hast-util-has-property/compatibility"}}