UNPKG
@alexisanzieu/passense
Version:
latest (2.9.6)
2.9.6
2.9.5
2.9.4
2.9.3
2.9.2
2.9.1
2.9.0
2.8.1
2.8.0
2.7.1
2.7.0
2.6.2
2.6.1
2.6.0
2.5.1
2.5.0
2.4.2
2.4.1
2.4.0
2.3.0
2.2.0
2.1.0
2.0.0
1.0.0
SOLID password to ensure robust security
github.com/alexissense/passense
alexissense/passense
@alexisanzieu/passense
/
lib
/
validators
/
TypeValidator.js
11 lines
(10 loc)
•
304 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
class
TypeValidator
{
static
isValid
(
password
) {
if
(
typeof
password !==
'string'
)
throw
new
Error
(
"Type entered is not correct"
);
return
true
; } }
exports
.
default
=
TypeValidator
;