Gathering detailed insights and metrics for tr-tmp-react-script-hook
Gathering detailed insights and metrics for tr-tmp-react-script-hook
npm install tr-tmp-react-script-hook
Typescript
Module System
Node Version
NPM Version
TypeScript (96.76%)
JavaScript (3.24%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
363
Last Day
1
Last Week
1
Last Month
4
Last Year
53
127 Stars
95 Commits
20 Forks
4 Watching
5 Branches
12 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.17
Package Id
tr-tmp-react-script-hook@1.0.17
Unpacked Size
7.76 kB
Size
3.44 kB
File Count
9
NPM Version
6.9.0
Node Version
12.6.0
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-50%
1
Compared to previous week
Last month
-60%
4
Compared to previous month
Last year
-17.2%
53
Compared to previous year
24
React hook to dynamically load an external script and know when its loaded
1// with npm 2npm install react-script-hook 3 4// with yarn 5yarn add react-script-hook
1import React from 'react'; 2import { StripeProvider } from 'react-stripe-elements'; 3import useScript from 'react-script-hook'; 4 5import MyCheckout from './my-checkout'; 6 7function App() { 8 const [loading, error] = useScript({ src: 'https://js.stripe.com/v3/' }); 9 10 if (loading) return <h3>Loading Stripe API...</h3>; 11 if (error) return <h3>Failed to load Stripe API: {error.message}</h3>; 12 13 return ( 14 <StripeProvider apiKey="pk_test_6pRNASCoBOKtIshFeQd4XMUh"> 15 <MyCheckout /> 16 </StripeProvider> 17 ); 18} 19 20export default App;
1useScript({
2 src: 'https://js.stripe.com/v3/',
3 onload: () => console.log('Script loaded!')
4})
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/16 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
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
20 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
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