@notillew/password-strength
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@notillew/password-strength

CI

  • Created just for learn and pratices
  • Typescript
  • Lodash
  • Functional Programming

Install

yarn add @notillew/password-strength

npm install @notillew/password-strength

Run tests

yarn test

yarn test:watch

Example outputs

import passwordStrength from '@notillew/password-strength'

expect(passwordStrength(passwordWeak)).toBe('weak')
expect(passwordStrength(passwordMedium)).toBe('medium')
expect(passwordStrength(passwordStrong)).toBe('strong')

Matching

  • Length
  • Uppercase and lowercase
  • Special characters
  • Sequences, like: 123, abc, abc123, a1b2c3 and beyond will decrease password level strength

Behavior

Score should be 0 to 10

Table

< 4 weak

>= 4 medium

>= 8 Strong

Readme

Keywords

none

Package Sidebar

Install

npm i @notillew/password-strength

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

12.5 kB

Total Files

32

Last publish

Collaborators

  • wellitogervickas