Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@aloreljs/ngx-auto-id
Advanced tools
Automatic ID generator for Angular
npm install @aloreljs/ngx-auto-id #for Angular 7
In whatever module you want to use the directive in:
import {NgxAutoIdModule} from '@aloreljs/ngx-auto-id';
@NgModule({
imports: [NgxAutoIdModule]
})
export class MyFancyModule {}
<div ngx-auto-id></div>
<div ngx-auto-id></div>
Outputs:
<div id="el-1"></div>
<div id="el-2"></div>
<div ngx-auto-id></div>
<div ngx-auto-id id-prefix="fancy-"></div>
Outputs:
<div id="el-3"></div>
<div id="fancy-1"></div>
<div [ngx-auto-id]="false" #autoID="ngx-auto-id"></div> <!-- Must be strictly false, not falsy -->
<div [id]="autoID.toString()"></div>
<div [id]="autoID"></div> <!-- The .toString() method returns the ID -->
Outputs:
<div></div>
<div id="el-4"></div>
<div id="el-4"></div>
<label [for]="idUsername">Username:</label>
<input ngx-auto-id #idUsername="ngx-auto-id"/>
FAQs
Automatically generates and applies the id attribute on elements
The npm package @aloreljs/ngx-auto-id receives a total of 29 weekly downloads. As such, @aloreljs/ngx-auto-id popularity was classified as not popular.
We found that @aloreljs/ngx-auto-id 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.