0.0.1 • Published 10 years ago

co-iron v0.0.1

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

co-iron

This is Iron and thunkified!

$ npm install co-iron --save
var co = require ('co');
var iron = require ('co-iron');
var password = 'thunkthunk';
var seal = iron.seal
var unseal = iron.unseal

co (function * () {
  var obj = { a : 1, b : [1, 2,3]};
  var sealed = yield seal (obj, password, iron.defaults);
  var unsealed = yield unseal (sealed, { default : password}, iron.defaults);
  console.log (unsealed);
})();

LICENSE

MIT

0.0.1

10 years ago