1.0.0 • Published 10 years ago

cls-bcrypt v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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.