co-iron

0.0.1 • Public • Published

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

/co-iron/

    Package Sidebar

    Install

    npm i co-iron

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • diorahman