{"library":"hast-util-is-javascript","type":"library","category":null,"description":"`hast-util-is-javascript` is a utility package within the unified/rehype ecosystem designed to determine if a given `hast` (HTML Abstract Syntax Tree) node represents a JavaScript script. It specifically checks `<script>` elements, evaluating their `type` and `language` attributes to ascertain if they contain or reference JavaScript, or if these attributes are absent, implying JavaScript by default. The current stable version is `3.0.1`. As part of the `rehypejs` project, it follows a coordinated release schedule, often releasing minor or patch updates across multiple packages, with major version increments for significant breaking changes, such as the recent `7.0.0` ecosystem release which introduced ESM-only modules and a Node.js 16+ requirement. Its primary differentiator is its seamless integration with other `hast` manipulation tools and its strict adherence to WHATWG HTML parsing standards.","language":"javascript","status":"active","version":"3.0.1","tags":["javascript","hast","hast-util","html","script","unist","util","utility","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hast-util-is-javascript","imports":["import { isJavaScript } from 'hast-util-is-javascript'"]},{"cmd":"yarn add hast-util-is-javascript","imports":[]},{"cmd":"pnpm add hast-util-is-javascript","imports":[]}],"homepage":null,"github":"https://github.com/rehypejs/rehype-minify.git#main","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hast-util-is-javascript","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-is-javascript/compatibility"}}