2.3.76 • Published 11 months ago

@hishprorg/blanditiis-officiis v2.3.76

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Strong Password Check

A Node.js module that checks the strength of a password based on configurable criteria.

Installation

To install the package, run the following command:

npm i strong-password-check --save

Usage

const getPasswordStrength = require('strong-password-check');

const password = 'myPassword123#';

const config = {
    lowercase: true,
    uppercase: true,
    digits: true,
    specialChars: true,
    minLength: 8,
};

const result = getPasswordStrength(password, config);

console.log(result);
// { messages: [], strength: 'Strong' }

The package exports a single function, getPasswordStrength, which takes two arguments:

  • password: A string representing the password to check.
  • config: An object containing the configuration options for the password strength checker. The following options are available:
ValueTypeDefault ValueDescription
uppercaseBooleantrueWhether the password must contain at least one uppercase letter.
lowercaseBooleantrueWhether the password must contain at least one lowercase letter.
digitsBooleantrueBoolean. Whether the password must contain at least one number.
specialCharsBooleantrueWhether the password must contain at least one special charecter.
minLengthNumber8Number. The minimum length of the password.

The getPasswordStrength function returns an object with two properties:

  • messages: An array of strings containing messages for each criterion that the password does not meet.
  • strength: A string indicating the strength of the password. Possible values are "Weak", "Moderate", and "Strong".

Generate Random Password

import { generateRandomPassword } from 'strong-password-check';
// generates a random secure password
const password = generateRandomPassword(7);
// x3uX/0o4tK.3

Exports a function, generateRandomPassword, which takes in a number argument and returns back a string

Contributing

Contributions are welcome! If you find a bug or would like to add a feature, please open an issue or pull request on GitHub.

Contributors

This project exists thanks to all the people who have contributed.

Author

vpcassertcall-boundArray.prototype.flattenkeyreact posesymbolsortArray.prototype.filterCSSStyleDeclarationsignalbusytoobjectcircularjwtaccessibilityapi0uninstallTypeScriptopensslcallboundglobsignedsyntaxerrorWeakSetequalclassesjsdomregular-expressionUint32Arraytelephonehelperfast-deep-copyES2018dirES5byteLengthconsoleredux-toolkitfast-cloneString.prototype.triminstallerchromiumregexpfunction.lengthbootstrap lesspasswordpropertiesunicodehookformroutenegativequeuemixinscall-bindfiltergetencryptionECMAScript 2018variablesdragcryptcheckstatusconsthasReflect.getPrototypeOfpreserve-symlinkswalksuperagentloggerisbrowserslistfunctionalcomputed-typeslrujson-schemanamesstylingRxJSUint8ClampedArraybundlinglanguagejsxHyBitestBigInt64ArrayES2021touchfunctionsstringenvironmentsideexecdefinePropertyprivate datafnmatchformxtermexecfilewidthschemeincludespredictableFunction.prototype.namescheme-validationES3tostringtagdynamodbshamassertiontoSortedwhatwghigher-orderroutingreduceiamlistenersStreamsprototypeswfRegExp#flagsendpointmruimmersesarktype.envimmutablehttpdeep-copyargveslintpluginutilitypersistentutilsletautoscalingURLSearchParamsgetintrinsicsharedarraybufferSystem.globalcss lesspropcolorObject.entriesgetPrototypeOfformattingphoneajvcollection.es6deepMapsqssettingsES2015sharedhooksmodulesvalidatehelpersreusefastclonestructuredClonedeepcopyArray.prototype.findLastIndexObservablesmetadataprettyObject.fromEntriestypedarrayequalityUint16Array3dshimoptionarrayproto[[Prototype]]numbermatchprotobufrulesbin$.extendcjkenvironmentsRxchildsyntaxECMAScript 2020authenticationcore-jsreact-componentmake dirajaxjapaneseartlogginggradients cssless.jsJSONECMAScript 5BigUint64Arraygroupargumenttsinmergetypedarrayscreatenested cssiteratorsymlinkdescriptorcolors-0flattenObject.valuesfront-endproxyreal-timeintrinsicttyutilitiessetPrototypeOfwaapies6ReactiveExtensionsjson-schema-validatorchannelyamlprogressforEachECMAScript 2021awesomesaucecloudfrontmkdirsidentifierscss-in-jsespreedeleteforkcommandertakeES2023dependency managerfscommand-lineelectronArray.prototype.flatMapbannerautoprefixerelmbabel-coreeventscolumnworkflowpluginspecschemapackage managerURLroute53globals256ArrayBufferlengthes2018iteratenpmignoretc39fastcopyjoifantasy-landbeanstalkeslintconfigio-tsoncemapObject.getPrototypeOfArray.prototype.findLastdefinees-abstractxhruploadstringifierdeepclonestylesheetback-endcontainsfile systemlesscsstoolsspringSymbol.toStringTagenumerablevisualfullwidthfastReactiveXamazontslibtypeerrormockingidlerapidtoArraycurriedtrimStartUint8Arraypackage.jsonescapeinputreducerownrecursivenpmeslintbinaryec2Int16ArrayzerostreamconcatimportexportstreamsvestchinesesortedconfigFloat64Arraygradients css3locationtrimEndtranspilertypescriptemrmanagerreadableES2022@@toStringTages2016inferencekoreanless mixinsefficientpoint-freemkdirpecmascriptirqcloudwatchdiffstringifyrequirebuffersprivategdprenderreadstateharmonyJSON-SchemaloadbalancingfpvarObject.definePropertylinuxeverycryptoconsumecallbindweakmapserializeawsObjectselfdom-testing-librarystatelessflagclass-validatores-shim APIlogless compilerservercloudtrailformswindowfilepyyamlWeakMapshrinkwrap_.extendcharacterpopmotiondataViewhasOwnPropertystylesWebSocketsassertstesterqueryanimationmatchAllES6ECMAScript 7optimistsetteres2015Int8Arrayoutputnodeinternal slotzxtddgraphqlmovemobilefromclassnamesassignvaluesArrayBuffer.prototype.slicehandlereffect-tsvalidES7fluxexpressionmodulecachebundlertestingloadingjspackageschromejsonschemaboundsetwarningspinnerlibphonenumberregular expressionascii6to5CSSesECMAScript 6signalsremoveMicrosoftdateshebangl10nStyleSheetcss nestingECMAScript 2016deterministicjQueryless cssglacierrdsaccessorcollectionparserasterisksECMAScript 2015queueMicrotaskobjeast-asian-widthutildomtrimRightjavascriptIteratorvariables in cssauthcloudsearchwhicha11ypostcss-plugincallbackparsecss
2.3.76

11 months ago

2.3.75

11 months ago

2.3.74

11 months ago

2.3.73

11 months ago

2.3.72

11 months ago

2.3.71

11 months ago

2.3.70

11 months ago

2.3.69

11 months ago

2.3.68

11 months ago

2.3.67

11 months ago

2.3.66

11 months ago

2.3.65

11 months ago

2.3.64

11 months ago

2.3.63

11 months ago

2.3.62

11 months ago

2.3.61

11 months ago

2.3.60

12 months ago

2.3.59

12 months ago

2.3.58

12 months ago

2.3.57

12 months ago

2.3.56

12 months ago

2.3.55

12 months ago

2.2.55

12 months ago

2.2.54

12 months ago

2.2.53

12 months ago

2.2.52

12 months ago

2.2.51

12 months ago

2.2.50

12 months ago

2.2.49

12 months ago

2.1.49

12 months ago

2.1.48

12 months ago

2.1.47

12 months ago

2.1.46

12 months ago

2.1.45

12 months ago

2.1.44

12 months ago

2.1.43

12 months ago

2.0.43

1 year ago

2.0.42

1 year ago

2.0.41

1 year ago

2.0.40

1 year ago

2.0.39

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago