Gathering detailed insights and metrics for 2mundos-angular-cropperjs
Gathering detailed insights and metrics for 2mundos-angular-cropperjs
npm install 2mundos-angular-cropperjs
Typescript
Module System
Node Version
NPM Version
68.7
Supply Chain
94.1
Quality
74.8
Maintenance
50
Vulnerability
98.9
License
TypeScript (56.57%)
CSS (20.26%)
HTML (11.87%)
JavaScript (8.66%)
Shell (2.63%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
1,528
Last Day
1
Last Week
4
Last Month
21
Last Year
136
MIT License
109 Stars
62 Commits
68 Forks
7 Watchers
6 Branches
5 Contributors
Updated on Aug 24, 2024
Minified
Minified + Gzipped
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%
1
Compared to previous day
Last Week
-33.3%
4
Compared to previous week
Last Month
61.5%
21
Compared to previous month
Last Year
-60.5%
136
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
34 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