
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
ng-input-file
Advanced tools
This library provides a component input-file
that wraps a legacy input[type=file]
element styled with Material
components:
// legacy input
<input type="file" accept="image/*, video/*" (change)="fileChanged($event)">
// using a component
<input-file (files)="fileChanged($event)" #input1></input-file>
input-file
component emits (files)
output whenever user chooses or removes a file. By default, the component accepts image/*, video/*
and you can override it by providing optional input like [accept]="'image/*'"
.
A Stackblitz demo is available to show the usage.
// to install
npm install ng-input-file --save
yarn add ng-input-file
// in app.module.ts
import { NgInputFileModule } from 'ng-input-file';
@NgModule({
imports: [
NgInputFileModule,
// in template
<input-file (files)="fileChanged($event)" #input1></input-file>
// in component
import { NgInputFileComponent } from 'ng-input-file';
@ViewChild('input1')
private input1: NgInputFileComponent;
fileChanged({ files }) {
console.log(`fileChanged ${files.length}`, files, this.input1.filename);
}
FAQs
A component that wraps input[type=file] element styled with Material, enables user to choose file from local device or Google drive
The npm package ng-input-file receives a total of 0 weekly downloads. As such, ng-input-file popularity was classified as not popular.
We found that ng-input-file 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.