1.0.0 • Published 4 years ago

bcrypt-promisify v1.0.0

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

bcrypt-promisify

A promisified version of bcryptjs.

Table of contents

About

bcrypt-promisify is a promisified version of bcryptjs with extensive support for TypeScript.

  • Easy-to-use promises
  • No callback hell
  • TypeScript support
  • Hash strings instantly with genHash()

Installation

Install with NPM:

npm install bcrypt-promisify

Example Usage

var bcrypt = require("bcrypt-promisify");

bcrypt.compare(password, hash)
    .then(isMatch => {
        // Do something
    })
    .catch(error => {
        // Handle error
    });

Links

Contributing

Before creating an issue, please ensure that it hasn't already been reported / suggested.

License

License MIT

© 2020 Wlad Gumenyuk