cls-bcrypt

v1.0.0
Continuation local storage shim for bcrypt
continuation-local-storage bcrypt shim glue

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.

npm i cls-bcrypt

Metadata

  • MIT
  • Whatever
  • David M. Lee, II
  • released 3/17/2015

Downloads

Maintainers