1.1.0 • Published 3 years ago

@notillew/password-strength v1.1.0

Weekly downloads
74
License
MIT
Repository
github
Last release
3 years ago

@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

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago