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.
postcss-substitute-optional-required
Advanced tools
PostCSS plugin to shim the pseudo-selectors :required and :optional by using negation (:not) and therefore increase their browser support.
PostCSS plugin to shim the pseudo-selectors :required and :optional by using negation (:not) and therefore slightly increase their browser support.
/* input */
input:required::after {
content: '*'
}
textarea:optional::after {
content: '(optional)';
}
/* output */
input:not(:optional),
input:required::after {
content: '*'
}
textarea:not(:required)::after,
textarea:optional::after {
content: '(optional)';
}
/* input, option { method: 'shim-required' } */
:required {
color: hotpink;
}
:optional {
color: indianred;
}
/* output, option { method: 'shim-required' } */
:not(:optional),
:required {
color: hotpink;
}
:optional {
color: indianred;
}
/* input, option { method: 'shim-optional' } */
:required {
color: hotpink;
}
:optional {
color: indianred;
}
/* output, option { method: 'shim-optional' } */
:required {
color: hotpink;
}
:not(:required),
:optional {
color: indianred;
}
##Options
The only available option is method
, with the possible values shim-all
(default), shim-optional
and shim-required
:
postcss([ require('postcss-substitute-optional-required') ])
postcss([ require('postcss-substitute-optional-required') ])({ method: 'shim-required' }) //shim only the :required selector
See PostCSS docs for examples for your environment.
FAQs
PostCSS plugin to shim the pseudo-selectors :required and :optional by using negation (:not) and therefore increase their browser support.
The npm package postcss-substitute-optional-required receives a total of 0 weekly downloads. As such, postcss-substitute-optional-required popularity was classified as not popular.
We found that postcss-substitute-optional-required 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.