Gathering detailed insights and metrics for @types/croppie
Gathering detailed insights and metrics for @types/croppie
Gathering detailed insights and metrics for @types/croppie
Gathering detailed insights and metrics for @types/croppie
The repository for high quality TypeScript type definitions.
npm install @types/croppie
Typescript
Module System
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,050 Stars
89,747 Commits
30,434 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 16, 2025
Latest Version
2.6.4
Package Id
@types/croppie@2.6.4
Unpacked Size
7.43 kB
Size
2.21 kB
File Count
5
Published on
Nov 07, 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
npm install --save @types/croppie
This package contains type definitions for croppie (https://github.com/Foliotek/Croppie).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/croppie.
1export as namespace Croppie; 2 3export = Croppie; 4 5declare class Croppie { 6 constructor(container: HTMLElement, options?: Croppie.CroppieOptions); 7 8 bind(options: { 9 url: string; 10 points?: number[] | undefined; 11 orientation?: number | undefined; 12 zoom?: number | undefined; 13 useCanvas?: boolean | undefined; 14 }): Promise<void>; 15 16 result(options: Croppie.ResultOptions & { type: "base64" | "canvas" }): Promise<string>; 17 result(options: Croppie.ResultOptions & { type: "html" }): Promise<HTMLElement>; 18 result(options: Croppie.ResultOptions & { type: "blob" }): Promise<Blob>; 19 result(options: Croppie.ResultOptions & { type: "rawcanvas" }): Promise<HTMLCanvasElement>; 20 result(options?: Croppie.ResultOptions): Promise<HTMLCanvasElement>; 21 22 get(): Croppie.CropData; 23 24 rotate(degrees: 90 | 180 | 270 | -90 | -180 | -270): void; 25 26 setZoom(zoom: number): void; 27 28 destroy(): void; 29} 30 31declare namespace Croppie { 32 type CropType = "square" | "circle"; 33 34 type Format = "jpeg" | "png" | "webp"; 35 36 type Type = "canvas" | "base64" | "html" | "blob" | "rawcanvas"; 37 38 interface ResultOptions { 39 type?: Type | undefined; 40 size?: "viewport" | "original" | { width: number; height: number } | undefined; 41 format?: Format | undefined; 42 quality?: number | undefined; 43 circle?: boolean | undefined; 44 } 45 46 interface CroppieOptions { 47 boundary?: { width: number; height: number } | undefined; 48 customClass?: string | undefined; 49 enableExif?: boolean | undefined; 50 enableOrientation?: boolean | undefined; 51 enableZoom?: boolean | undefined; 52 enforceBoundary?: boolean | undefined; 53 enableResize?: boolean | undefined; 54 /** @default 1.5 */ 55 maxZoom?: number | undefined; 56 /** @default 0 */ 57 minZoom?: number | undefined; 58 mouseWheelZoom?: boolean | "ctrl" | undefined; 59 showZoomer?: boolean | undefined; 60 viewport?: { width: number; height: number; type?: CropType | undefined } | undefined; 61 } 62 63 interface CropData { 64 points?: number[] | undefined; 65 orientation?: number | undefined; 66 zoom?: number | undefined; 67 } 68} 69
These definitions were written by Connor Peet, dklmuc, Sarun Intaralawan, and Knut Erik Helgesen.
No vulnerabilities found.
Reason
30 commit(s) and 1 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-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