cls-bcrypt
v1.0.0
Published
Continuation local storage shim for bcrypt
Downloads
2
Maintainers
Readme
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
.