co-iron
v0.0.1
Published
thunkified iron
Downloads
6
Readme
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