Installations
npm install old-school-img-loader
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
6.2.0
NPM Version
3.8.9
Score
39
Supply Chain
67.2
Quality
74.1
Maintenance
50
Vulnerability
99.6
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (99.93%)
HTML (0.05%)
CSS (0.02%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
Download Statistics
Total Downloads
1,800
Last Day
1
Last Week
2
Last Month
24
Last Year
109
GitHub Statistics
WTFPL License
1 Stars
15 Commits
2 Watchers
2 Branches
1 Contributors
Updated on Oct 20, 2016
Bundle Size
1.77 kB
Minified
741.00 B
Minified + Gzipped
Package Meta Information
Latest Version
0.1.3
Package Id
old-school-img-loader@0.1.3
Size
2.36 kB
NPM Version
3.8.9
Node Version
6.2.0
Total Downloads
Cumulative downloads
Total Downloads
1,800
Last Day
0%
1
Compared to previous day
Last Week
-33.3%
2
Compared to previous week
Last Month
1,100%
24
Compared to previous month
Last Year
13.5%
109
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Old School Image Loader
Example
View the live example
View the code for the live example
Usage
- install:
npm install --save old-school-img-loader
- import/require:
1import OldSchoolImgLoader from 'old-school-img-loader'; 2var OldSchoolImgLoader = require('old-school-img-loader');
- use:
1<OldSchoolImgLoader 2 src="https://fillmurray.com/300/300" 3 height={300} 4 width={300} 5 background="#262626" 6 boxsize={20} 7 loadTime={3000}/>
Required Props
src
: string. Your src will be passed to animg
tag directlyheight
: valid css height value. The height of yourimg
is required, to follow best practices in your HTML.width
: see height, but use the word width insteadbackground
: string. Make sure the background of your image loads the same color as the surrounding background. Required because it's not actually background, it's foreground masquarading as background.
Optional Props
boxsize
: integer. How big (in pixels) do you want the loading boxes to be. Default is 10px.loadTime
: integer. The approximate time in milliseconds you wish the total load time for the image to take. Approximate because screen painting time ultimately sets the lower limit.

No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Do What The F*ck You Want To Public License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
Found 0/15 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
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-02-10
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