Gathering detailed insights and metrics for react-attr-converter
Gathering detailed insights and metrics for react-attr-converter
Gathering detailed insights and metrics for react-attr-converter
Gathering detailed insights and metrics for react-attr-converter
Convert HTML attribute names to React props
npm install react-attr-converter
Typescript
Module System
Node Version
NPM Version
99
Supply Chain
82.9
Quality
75.5
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
11,690,325
Last Day
2,645
Last Week
19,024
Last Month
130,915
Last Year
1,821,679
8 Stars
22 Commits
4 Forks
2 Watching
1 Branches
3 Contributors
Minified
Minified + Gzipped
Latest Version
0.3.1
Package Id
react-attr-converter@0.3.1
Size
7.64 kB
NPM Version
5.2.0
Node Version
6.11.0
Publised On
12 Jul 2017
Cumulative downloads
Total Downloads
Last day
-65.2%
2,645
Compared to previous day
Last week
-43%
19,024
Compared to previous week
Last month
-17.9%
130,915
Compared to previous month
Last year
-9%
1,821,679
Compared to previous year
Convert HTML attribute names to React props.
It converts HTML attribute names into prop names used by React.
1convert('class'); // => 'className' 2convert('for'); // => 'htmlFor' 3convert('onclick'); // => 'onClick' 4convert('onCLICK'); // => 'onClick'
It bypasses attribute names which are not supported by React.
1convert('data-hello'); // => 'data-hello' 2convert('lovelive'); // => 'lovelive'
Install with NPM:
npm i --save react-attr-converter
Import with CommonJS or whatever:
1const convert = require('react-attr-converter'); 2 3import convert from 'react-attr-converter'; 4import * as convert from 'react-attr-converter'; // both of them work
When a bug is found, please report them in Issues.
Also, any form of contribution(especially a PR) will absolutely be welcomed :beers:
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/20 approved changesets -- score normalized to 1
Reason
project is archived
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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
63 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-12-23
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