Gathering detailed insights and metrics for ngx-m-img-cropper
Gathering detailed insights and metrics for ngx-m-img-cropper
Gathering detailed insights and metrics for ngx-m-img-cropper
Gathering detailed insights and metrics for ngx-m-img-cropper
npm install ngx-m-img-cropper
Typescript
Module System
Node Version
NPM Version
72.1
Supply Chain
89.7
Quality
75.3
Maintenance
50
Vulnerability
98.6
License
TypeScript (88.49%)
JavaScript (9.03%)
HTML (2.23%)
Less (0.25%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
3,159
Last Day
1
Last Week
5
Last Month
50
Last Year
463
3 Stars
23 Commits
1 Watchers
30 Branches
1 Contributors
Updated on Mar 25, 2023
Minified
Minified + Gzipped
Latest Version
8.0.2
Package Id
ngx-m-img-cropper@8.0.2
Unpacked Size
395.92 kB
Size
92.38 kB
File Count
35
NPM Version
6.9.0
Node Version
10.16.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-64.3%
5
Compared to previous week
Last Month
-2%
50
Compared to previous month
Last Year
56.9%
463
Compared to previous year
1
3
1npm i hammerjs 2npm i ngx-m-img-cropper
import hammerjs in main.ts
import 'hammerjs';
Once installed you need to import the main module:
1import {ImgCropperModule} from 'ngx-m-img-cropper'; 2 3@NgModule({ 4 declarations: [AppComponent, ...], 5 imports: [ImgCropperModule, ...], 6 bootstrap: [AppComponent] 7}) 8export class AppModule { 9}
the cropped image 's background color is green, you can change it by provide a MCropParams
1 providers: [ 2 {provide: MCropParams, useValue: {backgroundColor: '#f0f0f0'}}, ... 3 ]
add the m-img-cropper componet to your app.component.html
1<m-img-cropper></m-img-cropper>
use it like this:
1import { Component, OnInit } from '@angular/core'; 2import {ImgCropperService} from 'ngx-m-img-cropper'; 3 4@Component({ 5 selector: '...', 6 templateUrl: '...', 7 styleUrls: ['...'] 8}) 9export class Mine1Component implements OnInit { 10 11 imgsrc = 'assets/header.jpg'; 12 constructor(private imgCropperService: ImgCropperService) { } 13 14 ngOnInit() { 15 } 16 click(): void { 17 this.imgCropperService.getCropImgData({width: 400, height: 300}) 18 .then(data => { 19 this.imgsrc = data; 20 }); 21 }
MIT License (MIT)
end
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/17 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license 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
117 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