Gathering detailed insights and metrics for react-native-linear-gradient-degree
Gathering detailed insights and metrics for react-native-linear-gradient-degree
npm install react-native-linear-gradient-degree
Typescript
Module System
Node Version
NPM Version
68.6
Supply Chain
79.3
Quality
75.2
Maintenance
100
Vulnerability
100
License
TypeScript (73.47%)
JavaScript (26.53%)
Total Downloads
199,708
Last Day
34
Last Week
216
Last Month
1,620
Last Year
27,163
4 Stars
3 Commits
2 Forks
2 Watching
7 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.1
Package Id
react-native-linear-gradient-degree@0.0.1
Unpacked Size
20.49 kB
Size
5.58 kB
File Count
7
NPM Version
6.14.4
Node Version
12.14.1
Cumulative downloads
Total Downloads
Last day
-71.9%
34
Compared to previous day
Last week
-54.7%
216
Compared to previous week
Last month
-31.1%
1,620
Compared to previous month
Last year
-65.7%
27,163
Compared to previous year
Transform css linear-gradient degree to start and end coordinates
in react-native-linear-gradient or expo-linear-gradient
1npm install react-native-linear-gradient-degree --save
For example, css background:
1background : linear-gradient(240deg,rgba(43,156,225,1) 0%,rgba(46,137,193,1) 100%);
1import * as React from 'react'; 2import { Text, View } from 'react-native'; 3import { LinearGradient } from 'expo-linear-gradient'; 4import { deg } from 'react-native-linear-gradient-degree'; 5 6export const App: React.FunctionComponent = function App(props) { 7 return ( 8 <View style={{ marginTop: 200 }}> 9 <LinearGradient colors={["rgba(43,156,225,1)", "rgba(46,137,193,1)"]} {...deg(240)}> 10 <Text style={{ height: 50, width: 200 }}>apply</Text> 11 </LinearGradient> 12 </View> 13 ); 14}; 15 16console.log(deg(240)) // {"start":{"x":1,"y":0.7886751345948129},"end":{"x":0,"y":0.21132486540518713}}
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/3 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
92 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
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