Gathering detailed insights and metrics for 2mundos-angular-cropperjs
Gathering detailed insights and metrics for 2mundos-angular-cropperjs
Gathering detailed insights and metrics for 2mundos-angular-cropperjs
Gathering detailed insights and metrics for 2mundos-angular-cropperjs
CropperJS integration for Angular +6
npm install 2mundos-angular-cropperjs
Typescript
Module System
Node Version
NPM Version
TypeScript (56.57%)
CSS (20.26%)
HTML (11.87%)
JavaScript (8.66%)
Shell (2.63%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
110 Stars
62 Commits
67 Forks
7 Watchers
6 Branches
5 Contributors
Updated on Jun 23, 2025
Latest Version
0.1.5-2m.0.0
Package Id
2mundos-angular-cropperjs@0.1.5-2m.0.0
Unpacked Size
31.99 kB
Size
5.39 kB
File Count
8
NPM Version
5.5.1
Node Version
8.9.1
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
1
3
1
CropperJS integration for Angular 2/4
1- Install the library:
1$ npm install angular-cropperjs --save
2- Import and load AngularCropperjsModule
in the module you want to use, for example AppModule
:
1import { BrowserModule } from '@angular/platform-browser'; 2import { NgModule } from '@angular/core'; 3 4import { AppComponent } from './app.component'; 5 6// 7// Import angular-cropperjs 8import { AngularCropperjsModule } from 'angular-cropperjs'; 9 10@NgModule({ 11 declarations: [ 12 AppComponent 13 ], 14 imports: [ 15 BrowserModule, 16 17 // 18 // Load angular-cropperjs 19 AngularCropperjsModule 20 ], 21 providers: [], 22 bootstrap: [AppComponent] 23}) 24export class AppModule { }
3- Use the component in your template like this:
1<!-- You can now use angular-cropper component in app.component.html --> 2<angular-cropper [cropperOptions]="config" [imageUrl]="imageUrl"></angular-cropper>
Using CropperJS methods:
Use @ViewChild in your component to get the element:
In your app.component.html
1<angular-cropper #angularCropper ..>
And in your app.component.ts
1 2// 3// Import AngularCropperjsComponent 4import { AngularCropperjsComponent } from 'angular-cropperjs'; 5 6// 7// Get with @ViewChild 8@ViewChild('angularCropper') public angularCropper: AngularCropperjsComponent;
Then just call the CropperJS method you want:
anywhere in your app.component.ts
1 2// 3// Lets try to zoom 4this.angularCropper.cropper.zoom(0.1);
To generate all *.js
, *.d.ts
and *.metadata.json
files:
1$ npm run build
To lint all *.ts
files:
1$ npm run lint
MIT © Matheus Davidson
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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
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
40 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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