Gathering detailed insights and metrics for @types/imagesloaded
Gathering detailed insights and metrics for @types/imagesloaded
Gathering detailed insights and metrics for @types/imagesloaded
Gathering detailed insights and metrics for @types/imagesloaded
npm install @types/imagesloaded
Typescript
Module System
90.9
Supply Chain
91
Quality
75.9
Maintenance
100
Vulnerability
100
License
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
4,885,905
Last Day
2,344
Last Week
13,012
Last Month
56,147
Last Year
625,406
NOASSERTION License
49,190 Stars
88,715 Commits
30,308 Forks
640 Watchers
5 Branches
9,978 Contributors
Updated on Feb 14, 2025
Latest Version
4.1.6
Package Id
@types/imagesloaded@4.1.6
Unpacked Size
6.65 kB
Size
2.12 kB
File Count
5
Published on
Nov 21, 2023
Cumulative downloads
Total Downloads
Last Day
-15.7%
2,344
Compared to previous day
Last Week
2.1%
13,012
Compared to previous week
Last Month
43.4%
56,147
Compared to previous month
Last Year
-36.3%
625,406
Compared to previous year
1
npm install --save @types/imagesloaded
This package contains type definitions for imagesloaded (https://github.com/desandro/imagesloaded).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagesloaded.
1/// <reference types="jquery" /> 2 3declare namespace ImagesLoaded { 4 type ElementSelector = Element | NodeList | Element[] | string; 5 6 /** interface for an image currently loading or completed */ 7 interface LoadingImage { 8 img: HTMLImageElement; 9 isLoaded: boolean; 10 } 11 12 interface ImagesLoadedCallback { 13 (instance?: ImagesLoaded): void; 14 } 15 16 interface ImagesLoadedListener { 17 (instance: ImagesLoaded, image?: LoadingImage): void; 18 } 19 20 interface ImagesLoaded { 21 new(elem: ElementSelector, callback: ImagesLoadedCallback): ImagesLoaded; 22 23 images: LoadingImage[]; 24 25 // event listeners 26 on(event: string, listener: ImagesLoadedListener): void; 27 off(event: string, listener: ImagesLoadedListener): void; 28 once(event: string, listener: ImagesLoadedListener): void; 29 } 30 31 interface ImagesLoadedOptions { 32 background: true | string; 33 } 34 35 interface ImagesLoadedConstructor { 36 /** 37 * Creates a new ImagesLoaded object with the provided callback 38 * @param elem Element, NodeList, Element array, or selector string for images to watch 39 * @param options object that can tell imagesloaded to watch background images as well 40 * @param callback function triggered after all images have been loaded 41 */ 42 (elem: ElementSelector, options: ImagesLoadedOptions, callback?: ImagesLoadedCallback): ImagesLoaded; 43 (elem: ElementSelector, callback?: ImagesLoadedCallback): ImagesLoaded; 44 } 45} 46 47declare var imagesLoaded: ImagesLoaded.ImagesLoadedConstructor; 48 49declare module "imagesloaded" { 50 export = imagesLoaded; 51} 52 53interface JQuery { 54 imagesLoaded(callback?: ImagesLoaded.ImagesLoadedCallback): JQueryDeferred<ImagesLoaded.ImagesLoaded>; 55 imagesLoaded( 56 options: ImagesLoaded.ImagesLoadedOptions, 57 callback?: ImagesLoaded.ImagesLoadedCallback, 58 ): JQueryDeferred<ImagesLoaded.ImagesLoaded>; 59} 60
These definitions were written by Chris Charabaruk, and Cameron Little.
No vulnerabilities found.
Reason
30 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
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