Gathering detailed insights and metrics for stylis-plugin-rtl
Gathering detailed insights and metrics for stylis-plugin-rtl
Gathering detailed insights and metrics for stylis-plugin-rtl
Gathering detailed insights and metrics for stylis-plugin-rtl
npm install stylis-plugin-rtl
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
37 Stars
37 Commits
18 Forks
2 Watching
4 Branches
99 Contributors
Updated on 20 Feb 2024
Minified
Minified + Gzipped
TypeScript (99.15%)
JavaScript (0.85%)
Cumulative downloads
Total Downloads
Last day
1.8%
40,874
Compared to previous day
Last week
3.2%
225,369
Compared to previous week
Last month
8.4%
941,664
Compared to previous month
Last year
73.3%
9,262,194
Compared to previous year
1
1
7
Stylis RTL plugin based on CSSJanus
NOTE! Use v1 of this plugin for styled-components v5, NOT v2 (v2 is for libraries that have upgraded to stylis v4, which s-c has not yet. At the moment only emotion 11 is updated.)
1yarn add stylis-plugin-rtl@^1
1yarn add stylis-plugin-rtl stylis
1import styled, { StyleSheetManager } from "styled-components"; 2import rtlPlugin from "stylis-plugin-rtl"; 3 4const Box = styled.div` 5 padding-left: 10px; 6`; 7 8function MakeItRTL() { 9 return ( 10 <StyleSheetManager stylisPlugins={[rtlPlugin]}> 11 <Box>My padding will be on the right!</Box> 12 </StyleSheetManager> 13 ); 14}
Because minification removes all comments from your CSS before it passes to <StyleSheetManager>
, /* @noflip */
comment won't work.
You will have to either:
/*! @noflip */
, to prevent it from being removedminify
to false
in .babelrc
(see styled-components documentation).This is a fork of stylis-rtl
for use with styled-components v5+
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 7/28 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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