Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
ngx-show-hide-password
Advanced tools
> Add split input button to password or text input. Toggles input type between "text" and "password".
Add split input button to password or text input. Toggles input type between "text" and "password".
npm install ngx-show-hide-password --save
npm install @fortawesome/angular-fontawesome @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons --save
// app.module.ts
import { ShowHidePasswordModule } from 'ngx-show-hide-password';
// no need to import @fortawesome/angular-fontawesome
...
@NgModule({
...
imports: [
BrowserModule,
ShowHidePasswordModule,
...
],
...
})
<show-hide-password size="lg" btnStyle="primary" [btnOutline]="false">
<input type="password" name="..." >
</show-hide-password>
<mat-form-field>
<input id="mysecretpassword" type="password" placeholder="Password" matInput showHideInput>
<i matSuffix
class="material-icons"
showHideTrigger="mysecretpassword"
[showHideStatus]="{ materialIcon: true, id: 'mysecretpassword' }"
></i>
</mat-form-field>
Password hidden | Password exposed |
---|---|
Demo on stackblitz
attribute | type | description |
---|---|---|
btnOutline | boolean | default: true |
btnStyle | string | 'primary' , 'secondary' , 'success' , 'warning' , 'danger' or 'info' . default: 'secondary' |
size | string | 'sm' , 'lg' . default: nothing. |
Demo on stackblitz
The element must have a valid id attribute.
type | description |
---|---|
string | id of the input element. * required |
export interface ShowHideStatusConfig {
id: string;
show?: string;
hide?: string;
materialIcon?: boolean;
}
attribute | type | description |
---|---|---|
id | string | id of the input element. * required |
show | string | optional class/material icon identifier. default: 'visibility' |
hide | string | optional class/material icon identifier. default: 'visibility_off' |
materialIcon | boolean | if true updates innerHTML instead of class attribute. default: false |
btnStyle
and btnOutline
@1.1.0
insteadMIT © Oliver Sahner
FAQs
> Add split input button to password or text input. Toggles input type between "text" and "password".
The npm package ngx-show-hide-password receives a total of 765 weekly downloads. As such, ngx-show-hide-password popularity was classified as not popular.
We found that ngx-show-hide-password demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.