is-valid-password
v0.0.2
Published
Validate password
Downloads
50
Maintainers
Readme
is-valid-password
Validate password
Requirements
- 8-32 characters
- at least one lowercase letter
- at least one uppercase letter
- at least 1 number
- optional special character [!@#$%^&*]
Install
npm install is-valid-password
Usage
var isValidPassword = require('is-valid-password');
isValidPassword('dfE3kds#$%') // true
isValidPassword('dfE3kds4dD') // true
isValidPassword('345dsasdff') // false
isValidPassword('34543455') // false
isValidPassword('ahjklDDf') // false
isValidPassword('d#3dA@') // false
isValidPassword('#$$%%$%$$') // false
License
MIT