1.0.0 • Published 3 years ago

are-passwords-equal v1.0.0

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

are-passwords-equal

Build Status

Returns true if passwords are equal, otherwise returns false.

Install

Install with npm:

$ npm install --save are-passwords-equal

Usage

Works only with strings:

const arePasswordsEqual = require('are-passwords-equal'); // or import arePasswordsEqual from 'are-passwords-equal';

console.log(arePasswordsEqual('password', 'another_passowrd')); //=> false
console.log(arePasswordsEqual('password', 'passowrd')); //=> true

Testing

Run test:

npm run test

Author

Oleksii Sydorenko:

License

Copyright © 2018, Oleksii Sydorenko. Released under the MIT License.