Gathering detailed insights and metrics for react-fakeimg
Gathering detailed insights and metrics for react-fakeimg
Gathering detailed insights and metrics for react-fakeimg
Gathering detailed insights and metrics for react-fakeimg
npm install react-fakeimg
Typescript
Module System
Node Version
NPM Version
JavaScript (54.95%)
TypeScript (45.05%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
13 Commits
1 Forks
2 Watchers
10 Branches
1 Contributors
Updated on Apr 23, 2025
Latest Version
2.0.2
Package Id
react-fakeimg@2.0.2
Unpacked Size
11.91 kB
Size
4.05 kB
File Count
9
NPM Version
10.1.0
Node Version
20.9.0
Published on
Nov 09, 2023
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
2
Need fake image for your mockup ? react-fakeimg will create for you a fake image thanks to canvas. There is no HTTP Requests which means internet connection is not required.
1npm install --save react-fakeimg
1yarn add react-fakeimg
1import FakeImg from 'react-fakeimg';
1<FakeImg 2 alt="example" 3 width={500} 4 height={200} 5/>
1<FakeImg 2 alt="example" 3 width={500} 4 height={200} 5 text="Bonjour!" 6/>
1<FakeImg 2 alt="example" 3 width={500} 4 height={200} 5 text="New color" 6 bgColor="#005cc5" 7 fontColor="#ffffff" 8/>
Properties | type | Required | default | Description |
---|---|---|---|---|
alt | string | alt attribute is require in HTML5 for img tag | ||
bgColor | string | #c19d67 | Background colors | |
className | string | Add class attribute | ||
fontColor | string | #3a2306 | Font color | |
height | Number | ✓ | Image height | |
id | string | #id | ||
text | string | text to replace "width x height" | ||
style | object | If you want to add style to the image | ||
width | Number | ✓ | Image width |
Name | type | Parameters | Required | Description |
---|---|---|---|---|
onMount | func | none | Called when the component did mount | |
onClick | func | none | Called when click on the component | |
onMouseEnter | func | none | Called when mouse enter the component | |
onMouseLeave | func | none | Called when mouse leave the component | |
onUnMount | func | none | Called when the component will unMount |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
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/13 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-14
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