# bcryptjs-then

> bcryptjs as promised

Latest version **1.0.1** (published 2016-03-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install bcryptjs-then
pnpm add bcryptjs-then
yarn add bcryptjs-then
bun add bcryptjs-then
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-03-31 |
| First published | 2016-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Andy Nguyen |
| Maintainers | kurigohan |
| Keywords | bcrypt, then, promise, password |

## Links

- npm: https://www.npmjs.com/package/bcryptjs-then
- Repository: https://github.com/kurigohan/bcryptjs-then
- Homepage: https://github.com/kurigohan/bcryptjs-then#readme
- Issues: https://github.com/kurigohan/bcryptjs-then/issues
- npm.io page: https://npm.io/package/bcryptjs-then

## Dependencies (2)

- [bcryptjs](https://npm.io/package/bcryptjs.md) ^2.3.0
- [any-promise](https://npm.io/package/any-promise.md) ^1.1.0

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-03-31
- 1.0.0 — 2016-03-30

## README

# bcryptjs-then

[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]

[bcryptjs](https://github.com/dcodeIO/bcrypt.js) as promised.

## Installation

```bash
$ npm install bcryptjs-then
```

## API

Implements two methods:

### bcrypt.hash(password, [iterations]).then( hash => )

Hash a password with a # of `iterations`, defaulting to `10`.

```js
bcrypt.hash('password', 15).then(function (hash) {

})
```

### bcrypt.compare(password, hash).then( valid => )

Compare a password with a bcrypt hash.
Returns a boolean.

```js
bcrypt.compare('password', user.password).then(function (valid) {
  assert(valid)
})
```


[npm-image]: https://img.shields.io/npm/v/bcryptjs-then.svg?style=flat-square
[npm-url]: https://npmjs.org/package/bcryptjs-then
[travis-image]: https://img.shields.io/travis/kurigohan/bcryptjs-then.svg?style=flat-square
[travis-url]: https://travis-ci.org/kurigohan/bcryptjs-then

---
_Source: https://npm.io/package/bcryptjs-then · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
