RTL Converter
Simple way to Convert any stylesheet to RTL version
Installation
npm install rtl-converter
Motivation
Many manual converted RTL frameworks have been used and proved not to be quite flawless, for example, I couldn't find any Bootstrap RTL version that displays radio buttons correctly. This project tries to make the process flawless and automatic.
Output
Given the following stylesheet
This will output
Usage
const rtlConverter = ;let RTLCss = ;
to add RTL support, add class="rtl"
to html tag,add direction set to rtl
, for ltr you have to the the opposite.
RTL
......
LTR
......