Installations
npm install react-stripe-script-loader
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.16.0
NPM Version
6.9.0
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
212,982
Last Day
13
Last Week
93
Last Month
436
Last Year
21,387
GitHub Statistics
21 Stars
39 Commits
3 Forks
2 Watching
3 Branches
2 Contributors
Bundle Size
2.34 kB
Minified
1.13 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.1.1
Package Id
react-stripe-script-loader@1.1.1
Unpacked Size
379.51 kB
Size
352.25 kB
File Count
7
NPM Version
6.9.0
Node Version
10.16.0
Total Downloads
Cumulative downloads
Total Downloads
212,982
Last day
-35%
13
Compared to previous day
Last week
-26.8%
93
Compared to previous week
Last month
5.6%
436
Compared to previous month
Last year
-36.3%
21,387
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
React Stripe Script Loader
Github Pages Demo or Code Sandbox Demo
install
Install as a node module
npm i react-stripe-script-loader -S
usage
1import React from 'react' 2import StripeScriptLoader from 'react-stripe-script-loader' 3import { 4 StripeProvider, 5 Elements, 6 CardNumberElement, 7} from 'react-stripe-elements' 8 9const PageWithStripeElements = () => ( 10 <div> 11 <h1>Stripe Elements</h1> 12 <StripeScriptLoader 13 uniqueId='myUniqueId' 14 script='https://js.stripe.com/v3/' 15 loader="Loading..." 16 > 17 <StripeProvider apiKey="stripeApiKey"> 18 <Elements> 19 <CardNumberElement /> 20 </Elements> 21 </StripeProvider> 22 </StripeScriptLoader> 23 </div> 24) 25 26export default PageWithStripeElements
props
uniqueId string
unique id for script element
script string
script to load
loader ReactElement
string, React elements array, React component
supports
supports all React version with hooks "react": "^16.9.0"
important note
For older versions of React ^15.0.0 please install following version with tag react-version-15
npm install react-stripe-script-loader@react-version-15 -S
Yusuf Özlü
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
3 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/18 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 13 are checked with a SAST tool
Score
2.2
/10
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