npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lib-psv

v0.0.2

Published

> Superb password strength visualization for Angular 7.

Downloads

6

Readme

lib-psv(demo)

Superb password strength visualization for Angular 7.

Demo

This is a Angular 7 directive used as port of an awesome Codrops Article by Mary Lou (original source).

Install

npm i --save lib-psv

Usage

Check out the Demo to see it in action.

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgxPSVModule } from "lib-psv";
import { AppRoutes, routes } from './routes';
import { Demo1Component } from './demo1.component';
import { Demo2Component } from './demo2.component';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent, 
    Demo1Component,
    Demo2Component
  ],
  imports: [
    BrowserModule,
    NgxPSVModule,
    AppRoutes.forRoot(routes)
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
<input lib-psv 
  [psvOptions]="obj" 
  [psvFeedbackModel]="{ '0': 'Worst', '1': 'Bad', '2': 'Weak', '3': 'Good', '4': 'Strong' }"
  (psvScoreChanged)="onPsvStrengthChanged($event)"
  [psvCanvasWrapper]="canvaswrap"
  [psvCanvas]="canvas"
  [psvPoster]="poster"
  [psvFeedback]="feedback"
>
	

Changing the psvDirection string property to NORMAL (default is NORMAL) will typically result in a cleaner progressive image when a key down event occurred. If psvDirection changes to REVERSE, will typically result in a blurred progressive image when a key up event occurred.

Props

| Property | Type | Default | Description | |:--------------|:-------------------|:--------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------| | psvDirection | string| 'NORMAL'|'REVERSE' | Whether image should turn progressively clear or blurred when a key down event occurred | | psvFeedbackModel | any| { '0': 'Worst', '1': 'Bad', '2': 'Weak', '3': 'Good', '4': 'Strong' } | Feedback model is the object that contains the keys and values that correspond used to display in the element under the input.| | (psvScoreChanged) | EventEmitter<number>| EventEmitter| Emitted when the password score changes| |(psvPxFactorChanged)|EventEmitter<number>|EventEmitter|Emitterd when the pxFactor used to change the image is changed| | psvCanvasWrapper | HTMLElement| null | The parent HTML element of the psvCanvas element. | | psvCanvas | HTMLCanvasElement| null | The canvas in which the image is drawn to | | psvPoster | HTMLElement | null| The HTMLElement that needs to have a style property defined containing background-image with a valid value | | psvFeedback | HTMLElement| null | The HTMLElement which property innerHTML will be changed when if the psvFeedbackModel is set| | psvOptions | object| null | Object containing all the properties that are used to initialize lib-psv |

I've tried to keep the properties and behavior exactly the same as in the original codrops version.

Related

Development

This module was bootstrapped with angular-cli so it's using the common build/test/lint commands from angular-cli.

Library

  • Build: ng build lib-psv
  • Test: ng test lib-psv
  • Lint: ng lint lib-psv

Project

  • See it in action: ng serve

Misc

Follow Codrops: Twitter, Facebook, Google+, GitHub, Pinterest, Instagram

License

This resource can be used freely if integrated or build upon in personal or commercial projects such as websites, web apps and web templates intended for sale. It is not allowed to take the resource "as-is" and sell it, redistribute, re-publish it, or sell "pluginized" versions of it. Free plugins built using this resource should have a visible mention and link to the original work. Always consider the licenses of all included libraries, scripts and images used. MIT © danielpdev