npm.io
1.0.0 • Published 11 years ago

cls-bcrypt

Licence
MIT
Version
1.0.0
Deps
1
Vulns
0
Weekly
0

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.

Keywords