
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
postcss-janus
Advanced tools
PostCSS plugin to create RTL rules using CSSJanus.
nmp install postcss-janus --save-dev
yarn add postcss-janus -d
.example {
background-color: #FFF;
background-image: url("/folder/subfolder/icons/ltr/chevron.png");
border-radius: 0 2px 0 8px;
color: #666;
padding-right: 20px;
text-align: left;
transform: translate(-50%, 50%);
width: 100%;
}
.example {
background-color: #FFF;
background-image: url("/folder/subfolder/icons/ltr/chevron.png");
border-radius: 0 2px 0 8px;
color: #666;
padding-right: 20px;
text-align: left;
transform: translate(-50%, 50%);
width: 100%;
}
.rtl .example {
border-radius: 2px 0 8px 0;
padding-right: unset;
padding-left: 20px;
text-align: right;
transform: translate(50%, 50%);
}
const postcss = require('postcss');
const cssJanus = require('postcss-janus');
postcss( [ cssJanus(options) ] );
rules: [
{
test: /\.css$/,
use: [
{ loader: 'style-loader' },
{ loader: 'css-loader' },
{
loader: 'postcss-loader',
options: {
ident: 'postcss',
plugins: () => [ require('postcss-janus')(options) ]
}
}
]
}
]
Option | Default | Type | Description |
---|---|---|---|
prefixes | .rtl | string or array | Indicates the prefixes that should be added to the RTL rules |
swapLtrRtlInUrl | false | boolean | Swap ltr and rtl strings in URLs |
swapLeftRightInUrl | false | boolean | Swap left and right strings in URLs |
Directives should be added as comments before a CSS rule block or a property, e.g:
/* @ruleDirective */
.example {
/* @propertyDirective */
color: white;
}
Directive | Description |
---|---|
@noflip | Avoid flipping certain CSS property or an entire rule block |
@swapLtrRtlInUrl | Swap ltr and rtl strings in a certain property (it will ignore the global swapLtrRtlInUrl option |
@swapLeftRightInUrl | Swap left and right strings in a certain property (it will ignore the global swapLeftRightInUrl option |
If you do not use PostCSS, add it according to official docs and set this plugin in settings.
1.0.2
FAQs
PostCSS plugin plugin to create RTL rules using CSSJanus
The npm package postcss-janus receives a total of 7 weekly downloads. As such, postcss-janus popularity was classified as not popular.
We found that postcss-janus 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.