Gathering detailed insights and metrics for angular-2mundos-cropperjs
Gathering detailed insights and metrics for angular-2mundos-cropperjs
Gathering detailed insights and metrics for angular-2mundos-cropperjs
Gathering detailed insights and metrics for angular-2mundos-cropperjs
npm install angular-2mundos-cropperjs
Typescript
Module System
Min. Node Version
Node Version
NPM Version
72.5
Supply Chain
96.5
Quality
74.8
Maintenance
100
Vulnerability
100
License
JavaScript (43.04%)
TypeScript (34.45%)
CSS (20.81%)
HTML (1.71%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
825
Last Day
1
Last Week
3
Last Month
20
Last Year
105
MIT License
24 Commits
1 Watchers
3 Branches
1 Contributors
Updated on Mar 16, 2018
Latest Version
0.1.5-2m.0.1
Package Id
angular-2mundos-cropperjs@0.1.5-2m.0.1
Unpacked Size
51.76 kB
Size
12.00 kB
File Count
18
NPM Version
5.6.0
Node Version
8.9.4
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
50%
3
Compared to previous week
Last Month
122.2%
20
Compared to previous month
Last Year
-50.5%
105
Compared to previous year
1
35
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
no SAST tool detected
Details
Reason
Found 0/24 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
111 existing vulnerabilities detected
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