0.1.2 • Published 12 years ago

forrer v0.1.2

Weekly downloads
2
License
GPL v2
Repository
github
Last release
12 years ago

forrer

CLI/Node program for safe (based of AST tree) transforming "forEach" methods into "for" cycles.

Usage:

Bash:

forrer source.js > processed.js

Node.js:

var forrer = require('./src/forrer');

var code = 'arr.forEach(function(a) { console.log(a); });'

console.log(forrer(code));

Transformation look like this:

arr.forEach(function(a) { console.log(a); });
for(var _i=0,a,_m=arr;_i<_m.length;++_i){a=_m[_i]; console.log(a); }
0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago