
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
npm i ngx-pwd
import { NgxPwdModule } from 'ngx-pwd';
import { NgxPwdService } from 'ngx-pwd';
| Method | Param | Required | Description |
|---|---|---|---|
| generate | length | Defaults: 8 | return random password |
| validate | password | YES | returns true if password passed the rules |
| Input | Type | Required | Description |
|---|---|---|---|
| password | string | YES | Password to check |
| valid | Observable | Optional | returns if password is valid |
| options | object | NO | NgxPwdOptions |
| Output | Type | Required | Description |
|---|---|---|---|
| useRecPW | Callback | NO | Emits the generated password back to the parent component |
| Options | Type | Required | Description |
|---|---|---|---|
| length | Number | Defaults: 8 | Generated password length |
| color | String | Defaults: #18b4d7 | Background color of bullet when passed |
| hideAfterUse | Boolean | Defaults: false | Whether to hide generated password after used |
NgxPwdModule in your app module.
import { NgxPwdModule } from 'ngx-pwd'
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { NgxPwdModule } from 'ngx-pwd';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxPwdModule,
FormsModule
],
providers: [],
bootstrap: [AppComponent]
})
import { Component } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'ngx-pwd';
valid: BehaviorSubject<any> = new BehaviorSubject(false);
password = '';
options = {
length: 10,
hideAfterUse: true
};
useRecPwd (pwd: string) {
this.password = pwd;
}
}
<ngx-pwd></ngx-pwd> in your component.<div class="ngx-pwd-demo">
<div class="ngx-pwd-demo-form">
<p>NgxPwdModule Demo</p>
<div class="ngx-pwd-demo-input">
<input type="text" [(ngModel)]="password" placeholder="enter your password">
</div>
<div class="ngx-pwd-demo-component">
<ngx-pwd [options]="options" [password]="password" [valid]="valid" (useRecPW)="useRecPwd($event)"></ngx-pwd>
</div>
</div>
</div>
Thanks to all resources
FAQs
A simple password strength meter and generator
We found that ngx-pwd 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.