{"name":"hast-util-is-conditional-comment","version":"1.0.4","description":"hast utility to check if a node is a conditional comment","license":"MIT","keywords":["unist","hast","hast-util","util","utility","html","conditional","comment"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/main/packages/hast-util-is-conditional-comment"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"xo":false,"_id":"hast-util-is-conditional-comment@1.0.4","_nodeVersion":"14.0.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-rtULxWWknVeSuU/vsJ9tHo+M3ExyaOrZcWvLxqY2nUfCHbDcq60EJzSJC5zNm6ZlbxbJ8l7Ej8C1Kzsi5PJS1A==","shasum":"cc0694c9b5d27cc3e0f1d0e1185a631140aa6e81","tarball":"http://registry-npm.ywwl.com/hast-util-is-conditional-comment/download/hast-util-is-conditional-comment-1.0.4.tgz","fileCount":3,"unpackedSize":4006,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/cD8CRA9TVsSAnZWagAAN+YP/2aNwd5tNsg+hjhbdiB6\nI7HHhtPweq3fN/rIu2657aLH02DUJt767EhjDIHP+zHBVRjog9+5X/eG+ZKB\nock8OZ6RJAt0SP5i/1Hq7VL1pywYgeml58yjs+WG/hqeL4C58Z5IvpAzUDXq\nbFWhg8qcKxaPxISFxnb0qBLXBCIdB5Z5nJamy7+VKzBx9yKf0sXNMuxo7BxR\nthesNCHNc6gYONVl0vCo6f6nEhFJoH3LI/F+O935bXtuyjMrBld4bpSWQ/vQ\nDsTiy0iWr35ExYuYmOWZ/boGIc0+uVjKsR6qSdPjNYMnbYflL8wjG+uxKEwn\nrLpLitNN3xyj13vAmcxsbVvYlPWqUi4td7FLlhznsGiJB6LuDZswoHvuzb0z\nBv09v6sYtuAqr+NEetdHfENyvNiHB/R8gJKj1PkNsY6rQb2yQW9CoKOppY2r\nHcNlnkqgFyfGeM77tyW1WFOtPwiluAHyHvtQs3k4sl1+DPiTZNwppHLWtAbx\nT++KI6JNBvjouUzW7w+nylXUb77l/ONaAEksgxV7XUl8nb4KUtT4WgMrnErH\n/AjqC/EZtpPQ98e8L7afJM91SmbdX+SCMedABDn52ZMkuE2P6jdrEddkMSrL\n6jz+x6KkYLqDEOfznH20TcXoTDqCUR+ccKOj8NHXPGGQfg5OFvxCPBlh6I4s\nqkVs\r\n=eBSQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGya6QLORXwK54gSP2OnRsp6y5VGgo1UOa8SHlNrVM7BAiBgaQG3Q2psxKFmFJjeW3Pe8fPYXm2Qj4N3W9T72AE1Dw=="}],"size":1511,"noattachment":false,"key":"/hast-util-is-conditional-comment/-/hast-util-is-conditional-comment-1.0.4.tgz"},"maintainers":[{"email":"keith@mcknig.ht","name":"kmck"},{"email":"tituswormer@gmail.com","name":"wooorm"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hast-util-is-conditional-comment_1.0.4_1593688316549_0.8042585285808204"},"_hasShrinkwrap":false,"readme":"<!--This file is generated-->\n\n# hast-util-is-conditional-comment\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][funding-sponsors-badge]][funding]\n[![Backers][funding-backers-badge]][funding]\n[![Chat][chat-badge]][chat]\n\n[`hast`][hast] utility to check if a node is a conditional comment.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`isConditionalComment(node)`](#isconditionalcommentnode)\n*   [Syntax](#syntax)\n*   [Syntax tree](#syntax-tree)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package is a utility to check whether a hast node is a “conditional”\ncomment.\nConditional comments are a legacy feature that was specific to Internet\nExplorer.\nThey were no longer used in IE 10.\n\n## When should I use this?\n\nYou can use this package when you’re building tools that handle old and\nnon-standard HTML, but generally it’s recommended to remove conditional\ncomments.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install hast-util-is-conditional-comment\n```\n\nIn Deno with [`esm.sh`][esm-sh]:\n\n```js\nimport {isConditionalComment} from 'https://esm.sh/hast-util-is-conditional-comment@3'\n```\n\nIn browsers with [`esm.sh`][esm-sh]:\n\n```html\n<script type=\"module\">\n  import {isConditionalComment} from 'https://esm.sh/hast-util-is-conditional-comment@3?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {isConditionalComment} from 'hast-util-is-conditional-comment'\n\nisConditionalComment(u({type: 'comment', value: '[if IE]>...<![endif]'})) //=> true\nisConditionalComment(u({type: 'comment', value: '<![endif]'})) //=> true\nisConditionalComment(u({type: 'comment', value: 'foo'})) //=> false\n```\n\n## API\n\nThis package exports the identifier\n`isConditionalComment`.\nThere is no default export.\n\n### `isConditionalComment(node)`\n\nCheck if a node is a conditional comment.\n\n###### Parameters\n\n*   `node` (`Node`) — node to check\n\n###### Returns\n\nWhether a node is a conditional comment (`boolean`).\n\n## Syntax\n\nHTML is parsed according to WHATWG HTML (the living standard), which is also\nfollowed by all browsers.\n\n## Syntax tree\n\nThe syntax tree used is [hast][].\n\n## Types\n\nThis package is fully typed with [TypeScript][].\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line,\n`hast-util-is-conditional-comment@^3`,\ncompatible with Node.js 16.\n\n## Security\n\nAs **rehype** works on HTML and improper use of HTML can open you up to a\n[cross-site scripting (XSS)][xss] attack, use of rehype can also be unsafe.\nUse [`rehype-sanitize`][rehype-sanitize] to make the tree safe.\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`rehypejs/.github`][health] for ways\nto get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n[author]: https://wooorm.com\n\n[build]: https://github.com/rehypejs/rehype-minify/actions\n\n[build-badge]: https://github.com/rehypejs/rehype-minify/workflows/main/badge.svg\n\n[chat]: https://github.com/rehypejs/rehype/discussions\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[coc]: https://github.com/rehypejs/.github/blob/main/code-of-conduct.md\n\n[contributing]: https://github.com/rehypejs/.github/blob/main/contributing.md\n\n[coverage]: https://codecov.io/github/rehypejs/rehype-minify\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype-minify.svg\n\n[downloads]: https://www.npmjs.com/package/hast-util-is-conditional-comment\n\n[downloads-badge]: https://img.shields.io/npm/dm/hast-util-is-conditional-comment.svg\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esm-sh]: https://esm.sh\n\n[funding]: https://opencollective.com/unified\n\n[funding-backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[funding-sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[hast]: https://github.com/syntax-tree/hast\n\n[health]: https://github.com/rehypejs/.github\n\n[license]: https://github.com/rehypejs/rehype-minify/blob/main/license\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[rehype-sanitize]: https://github.com/rehypejs/rehype-sanitize\n\n[size]: https://bundlejs.com/?q=hast-util-is-conditional-comment\n\n[size-badge]: https://img.shields.io/bundlejs/size/hast-util-is-conditional-comment\n\n[support]: https://github.com/rehypejs/.github/blob/main/support.md\n\n[typescript]: https://www.typescriptlang.org\n\n[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting\n","publish_time":1593688316676,"_cnpm_publish_time":1593688316676,"dist-tags":{"latest":"3.0.1"}}