Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@oddbird/browser-support
Advanced tools
A web component for showing browser-support data from the Web Features project
A web component for showing browser-support data from the Web Features project.
This is inspired by the official
baseline-status
component
from Google and the Web Platform DX community group.
It currently uses their https://api.webstatus.dev/v1/features/
API.
h2
by default)General usage example:
<script type="module" src="browser-support.js"></script>
<browser-support data-feature="container-queries"></browser-support>
<!-- With a light-dom fallback… -->
<browser-support>
<h3 slot="title">Container Style Queries</h3>
<a href="https://web-platform-dx.github.io/web-features-explorer/features/container-style-queries/">
Browser support data
</a>
</browser-support>
You have a few options (choose one):
npm install @oddbird/browser-support
Make sure you include the <script>
in your project
(choose one, and update the version number as needed):
<!-- Host yourself -->
<script type="module" src="browser-support.js"></script>
<!-- 3rd party CDN, not recommended for production use -->
<script
type="module"
src="https://www.unpkg.com/@oddbird/browser-support@0.1.0/browser-support.js"
></script>
<!-- 3rd party CDN, not recommended for production use -->
<script
type="module"
src="https://esm.sh/@oddbird/browser-support@0.1.0"
></script>
Or use the built-in
WebC component
with Eleventy,
by adding "npm:@oddbird/browser-support/*.webc"
to the Eleventy WebC Plugin components
registry:
// Only one module.exports per configuration file, please!
module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(eleventyWebcPlugin, {
components: [
// Add as a global WebC component
"npm:@oddbird/browser-support/*.webc",
],
});
}
The title
slot allows providing a fallback title,
and also the desired markup.
When the component is defined,
the actual title text will be replaced
with the name of the feature.
At OddBird, we enjoy collaborating and contributing as part of an open web community. But those contributions take time and effort. If you're interested in supporting our open-source work, consider becoming a GitHub sponsor, or contributing to our Open Collective.
❤️ Thanks!
With thanks to the following people:
FAQs
A web component for showing browser-support data from the Web Features project
We found that @oddbird/browser-support demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.