co-iron

thunkified iron

Usage no npm install needed!

<script type="module">
  import coIron from 'https://cdn.skypack.dev/co-iron';
</script>

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