Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 856 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 856 Bytes

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 © 2021, Oleksii Sydorenko. Released under the MIT License.