Finds all conditional comments in a string
npm install find-conditional-comments> Finds all conditional comments in a string



```
$ npm install find-conditional-comments
`js
const findConditionalComments = require('find-conditional-comments');
const html =
findConditionalComments(html);
//=> [ { open: "", range: [1, 63], downlevel: "hidden" } ]
`
Returns an Array of Objects for each comment with the following properties:
> boolean
Whether the comment is an HTML comment. This might be false for certain items when downlevel is revealed.
#### open
> String
Opening portion of the conditional comment.
#### close
> String
Closing portion of the conditional comment.
Whether the comment "bubbles" around the value.
When
true, the comment is visible to all platforms except those that support conditional comments. `
Hello, Not Microsoft Outlook!
`When
false, the comment is hidden from all platforms except those that support conditional comments.`
`#### downlevel
>
StringEither
hidden or revealed.hidden means the comment is hidden from all platforms except those that support conditional comments.revealed means the comment is visible to all platforms except those that support conditional comments.This is very similar to the
bubble property, but it's not the same.downlevel always be revealed if bubble is true.But
bubble can be true even if downlevel is hidden when using this syntax:`html
Please upgrade to Internet Explorer version 8.
`Learn more#downlevel-hidden-conditional-comments).
#### range
>
Array`A range array containing the start and end indices of the comment.
* preserve-comment-whitespace
* regex-empty-conditional-comments
* posthtml-mso
* html-comment-regex