Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
modernizr-stylus
Advanced tools
Modernizr-Stylus is a handy utility plugin for the Stylus CSS preprocessor that makes feature detection with Modernizr.js a lot easier.
It turns this...:
.test
+yep(csstransforms, csstransforms3d)
transform: translate3d(100px)
+nope(csstransforms, csstransforms3d)
left: 100px
...into this:
.csstransforms.csstransforms3d .test
transform: translate3d(100px)
.no-js .test,
.no-csstransforms .test,
.no-csstransforms3d .test
left: 100px
You can install Modernizr-Stylus through NPM:
$ npm install modernizr-stylus
Modernizr-Stylus is a Stylus plugin, and can be integrated in any way that Stylus plugins normally are. If you are curious how to use Stylus plugins, feel free to check out this guide.
By default, Modernizr-Stylus' mixins will be included automatically into all parsed stylesheets when included as above. If you'd like to import Modernizr-Stylus manually in Stylus when you want to use it, you can pass { implicit: false }
to the Modernizr-Stylus call:
modernizr({ implicit: false })
If you do it this way, you'll need to @import
Modernizr-Stylus manually wherever you'd like access to the mixins:
@import 'modernizr-stylus'
.test, .tes2
+yep(boxshadow)
box-shadow: 0 0 3px #000;
...etc...
Daniel Guillan - initial idea / scss mixins
FAQs
Helper mixins for using Modernizr.js test classes in Stylus
The npm package modernizr-stylus receives a total of 3 weekly downloads. As such, modernizr-stylus popularity was classified as not popular.
We found that modernizr-stylus 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.