Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-show-hide-password

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-show-hide-password

## Add a show hide button to password input fields

  • 2.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
939
decreased by-17.7%
Maintainers
1
Weekly downloads
 
Created
Source

ngx-show-hide-password

Add a show hide button to password input fields

Add split input button to password or text input. Toggles input type between "text" and "password".

Build Status

Requires
  • Angular ^7
  • Bootstrap ^4.1

Installation

npm install ngx-show-hide-password --save
npm install @fortawesome/angular-fontawesome @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons --save
yarn add ngx-show-hide-password
yarn add @fortawesome/angular-fontawesome @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons

Example

// app.module.ts
import { ShowHidePasswordModule } from 'ngx-show-hide-password';
...
@NgModule({
  ...
  imports: [
    BrowserModule,
    FormsModule,
    ShowHidePasswordModule,
    ...
  ],
  ...
})
<show-hide-password size="lg" btnStyle="primary" [btnOutline]="false">
  <input type="password" name=... >
</show-hide-password>
Password hiddenPassword exposed
Hidden passwordExposed password

Demo on stackblitz

Attributes

  • btnOutline: boolean. default: true
  • btnStyle: primary, secondary, success, warning, danger or info. default: secondary
  • size: sm, lg or nothing

Changelog

  • v2.0.2 fix build script and update readme
  • v2.0.0 switchted to @angular/cli and ng-packagr, requires @angular/core v7, includes Font Awesome Eye/EyeSlash Icon
  • v1.2.5 add 2 new attributes, btnStyle and btnOutline
  • v1.2.3 bootstrap 4.0.0
  • v1.2.2 update jquery ~> 3.0.0
  • v1.2.1 requires Angular v5, for Angular v4 use @1.1.0 instead
  • v1.2.0 update components
  • v1.1.0 initial release

LICENCE

MIT © Oliver Sahner

Keywords

FAQs

Package last updated on 21 Feb 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc