0.1.2 • Published 10 years ago

forrer v0.1.2

Weekly downloads
2
License
GPL v2
Repository
github
Last release
10 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

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago