
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
angular2-resizing-cropping-image
Advanced tools
# install the repo with npm
npm install angular2-resizing-cropping-image
# import
import { LyResizingCroppingImagesModule } from 'angular2-resizing-cropping-image';
@NgModule({
imports : [LyResizingCroppingImagesModule, ...],
})
import { Component } from '@angular/core';
@Component({
selector: 'image-upload',
styles: [`
:host{
display: block
}
`],
template: `
<input (change)="_img.imgChange($event)" type="file">
<button (click)="_img.zoom('+')">+</button>
<button (click)="_img.zoom('-')">-</button>
<button (click)="_img.center()">center</button>
<ly-cropping-img #_img format="png"></ly-cropping-img>
<div>Format input: {{_img._img.type}}</div>
<br />
<div>Format output: {{_img.format}}</div>
<br />
<div>Result: </div>
<br />
<img [src]="_img.imgCrop">
<br />
<input [(ngModel)]="_img.sizeW" placeholder="_img size W">
<input [(ngModel)]="_img.sizeH" placeholder="_img size H">
<input [(ngModel)]="_img.img" placeholder="Img">
`
})
export class imgUpload {}
FAQs
Resizing and cropping images with Angular 4
The npm package angular2-resizing-cropping-image receives a total of 25 weekly downloads. As such, angular2-resizing-cropping-image popularity was classified as not popular.
We found that angular2-resizing-cropping-image demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.