Gathering detailed insights and metrics for rtl-css-transform-webpack-plugin
Gathering detailed insights and metrics for rtl-css-transform-webpack-plugin
Gathering detailed insights and metrics for rtl-css-transform-webpack-plugin
Gathering detailed insights and metrics for rtl-css-transform-webpack-plugin
💎 Webpack plugin for transforming CSS from LTR to RTL.
npm install rtl-css-transform-webpack-plugin
Typescript
Module System
Node Version
NPM Version
TypeScript (67.22%)
CSS (28.63%)
JavaScript (4.15%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
11 Stars
13 Commits
1 Forks
2 Watchers
1 Branches
1 Contributors
Updated on Aug 04, 2022
Latest Version
1.0.6
Package Id
rtl-css-transform-webpack-plugin@1.0.6
Unpacked Size
8.56 kB
Size
3.41 kB
File Count
5
NPM Version
5.6.0
Node Version
8.11.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
Webpack plugin that implements RTLCSS framework for transforming Left-To-Right (LTR) Cascading Style Sheets (CSS) to Right-To-Left (RTL).
Before you should use a CSS extraction plugin. For Webpack v4 we use mini-css-extract-plugin to extract CSS from JS.
rtl-css-transform-webpack-plugin
creates RTL CSS file per LTR CSS file:
style.css
1.example { 2 direction: ltr; 3 margin: 0; 4 padding: 1em 2em .5em 1em; 5 background-color: #353639; 6 font-family: "Droid Sans", sans-serif/*rtl:prepend:"Droid Arabic Kufi",*/; 7 font-size: 16px/*rtl:14px*/; 8}
style.rtl.css
1.example { 2 direction: rtl; 3 margin: 0; 4 padding: 1em 1em .5em 2em; 5 background-color: #353639; 6 font-family: "Droid Arabic Kufi","Droid Sans", sans-serif; 7 font-size: 14px; 8}
1npm install rtl-css-transform-webpack-plugin --save-dev
1const MiniCssExtractPlugin = require("mini-css-extract-plugin"); 2const RtlCssPlugin = require("rtl-css-transform-webpack-plugin"); 3 4module.exports = { 5 entry: path.resolve(__dirname, "src", "index.js"), 6 output: { 7 path: path.resolve(__dirname, "dist"), 8 filename: "[name].js", 9 chunkFilename: "[name].js" // only for code splitting 10 }, 11 plugins: [ 12 new MiniCssExtractPlugin(), 13 new RtlCssPlugin() 14 ], 15 module: { 16 rules: [ 17 { 18 test: /\.css$/, 19 use: [ 20 MiniCssExtractPlugin.loader, 21 "css-loader" 22 ] 23 } 24 ] 25 } 26}
This option determines the name of each output bundle.
The default file name is [name].rtl.css
.
See webpack output filename for more details.
1new RtlCssPlugin({
2 filename: "rtl/[chunkhash].css"
3})
Produces inline source map. Disabled by default.
Source mapping can be enabled via sourcemap
option.
1new RtlCssPlugin({
2 sourcemap: true
3})
Alternatively it can be enabled using webpack devtool option.
1webpack --devtool source-map
Using built-in webpack optimization via production option.
1webpack -p
Alternatively see mini-css-extract-plugin optimization recommendation.
RTLCSS usage can be customized using object config.
Options are same as RTLCSS options.
Plugins are same as RTLCSS plugins.
Hooks are same as RTLCSS hooks.
1new RtlCssPlugin({ 2 config: { 3 options: {}, 4 plugins: [], 5 hooks: {} 6 } 7})
💐 Special thanks to @MohammadYounes for RTLCSS.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
94 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More