
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Cross-browser function that checks if an element is visible.
This script is very simple. But it checks for several edge cases, that are not so trivial. I used to copy/paste it between my projects, until I decided to make a simple Bower component out of it.
isVisible(element); // -> bool
It's that simple. Just one function with one parameter. The parameter should be a reference to an existing element. It returns false if:
display: none)visibility: hidden)These methods make it easy to apply the visibility check on array or collection of elements:
Returns true if all elements in the list are visible. Returns false if at least one element in the list is not visible. Also returns false if the argument is not a list (array or collection) or if any item in the list is not an element.
Returns true if at least one of the elements in the list is visible. Returns false if none of the elements in the list is visible. Also returns false if the argument is not a list (array or collection) or if any item in the list is not an element.
If you found any bugs, if you have feature requests or any questions, please, either file an issue at GitHub or send me an e-mail at mailto:riki@fczbkk.com.
isVisible is published under the MIT license. Feel free to use it in any way.
FAQs
Cross-browser function that checks if an element is visible.
The npm package is-visible receives a total of 524 weekly downloads. As such, is-visible popularity was classified as not popular.
We found that is-visible demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.