Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
angular2-file-drop
Advanced tools
Angular2 component with Drag and Drop support for files
npm install angular2-file-drop
import { Component, Output } from '@angular/core';
import { FileDropDirective } from 'angular2-file-drop';
@Component({
selector: 'upload',
template: `
<div fileDrop
[ngClass]="{'file-is-over': fileIsOver}"
[options]="options"
(fileOver)="fileOver($event)"
(onFileDrop)="onFileDrop($event)">
Drop file here
</div>
`,
directives: [ FileDropDirective ]
})
export class PartiesUpload {
public fileIsOver: boolean = false;
@Output() public options = {
readAs; 'ArrayBuffer'
};
private file: File;
public fileOver(fileIsOver: boolean): void {
this.fileIsOver = fileIsOver;
}
public onFileDrop(file: File): void {
console.log('Got file!');
}
}
DataURL
, ArrayBuffer
, BinaryString
or Text
FAQs
Angular2 component with Drag and Drop support for files
The npm package angular2-file-drop receives a total of 35 weekly downloads. As such, angular2-file-drop popularity was classified as not popular.
We found that angular2-file-drop demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.