it-works-regenerator-html
v0.0.0
Published
HTML version of it-works-regenerator
Downloads
2
Readme
it-works-regenerator-html
HTML version of it-works-regenerator
example
Build main.js
var gen = require('it-works-regenerator-html');
var fs = require('fs');
fs.writeFileSync('./main.js', gen.js);
test.js
var g = gen(100);
var y = g.next();
while(1) {
if(y.done) break;
console.log(y.value);
y = g.next();
}
index.html
<html>
<head>
<title>it-works-regenerator-html</title>
</head>
<body>
<h1>
Please view the result in JavaScript console
</h1>
<script src="main.js"></script>
<script src="test.js"></script>
</body>
</html>