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
npm install react-attr-converter
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
8 Stars
22 Commits
4 Forks
2 Watchers
1 Branches
3 Contributors
Updated on Jan 28, 2023
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
Published on
Jul 12, 2017
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
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
65 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