
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@oddbird/css-toggles
Advanced tools
The simplest, recommended way to install the polyfill is to copy it into your project.
Download css-toggles.min.js
from
unpkg.com and add it to
the appropriate directory in your project. Then, include it where necessary with
a <script>
tag:
<script src="/path/to/css-toggles.min.js" type="module"></script>
You can also use an IIFE version if your target browsers require it:
<script src="/path/to/css-toggles.iife.min.js"></script>
For more advanced configuration, you can install with npm:
npm install @oddbird/css-toggles
After installing, you’ll need to use appropriate tooling to use node_modules/@oddbird/css-toggles/dist/css-toggles.js
(or .min.js
).
For prototyping or testing, you can use the npm package via a Content Delivery Network. Avoid using JavaScript CDN’s in production, for many good reasons such as performance and robustness.
<script
src="https://cdn.jsdelivr.net/npm/@oddbird/css-toggles@latest"
crossorigin="anonymous"
defer
></script>
After installation the polyfill will automatically parse all stylesheets present in the HTML document (both inline and linked) for the proposed CSS Toggles syntax. Once the styles are parsed the toggling behavior will be polyfilled with JavaScript.
Visit our contribution guidelines.
FAQs
Polyfill for the proposed CSS Toggles syntax
The npm package @oddbird/css-toggles receives a total of 25 weekly downloads. As such, @oddbird/css-toggles popularity was classified as not popular.
We found that @oddbird/css-toggles demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.