cls-bcrypt

1.0.0 • Public • Published

cls-bcrypt

cls-bcrypt provides a shim layer for bcrypt so that it will work with continuation-local-storage. It does this by binding all callbacks passed to bcrypt's functions.

var cls = require('continuation-local-storage');
var ns = cls.createNamespace('NODESPACE');
 
var bcrypt = require('bcrypt');
 
// load shim
require('cls-bcrypt')(ns);

tests

The tests can be run with npm test.

Package Sidebar

Install

npm i cls-bcrypt

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • leedm777