garden/plugs — pull request #58 by jankeromnes (2013-10-29 16:01:43+00:00)
Title: [meta] prettify all plugs meta data

Batch processed all meta data to make them readable. This will be awesome for reviewing future meta data changes.

Processing script:

var cp = require('child_process'),
fs = require('fs');

cp.exec('find', function(err, stdout, stderr) {
var paths = stdout.split('\n');
paths.forEach(function(path) {
if (path.length < 3) return;
console.log(path);
fs.readFile(path, function(err, data) {
if (err) { console.error(path, err); return; }
var json = JSON.parse(data);
fs.writeFile(path, JSON.stringify(json, null, 2), function(e) {
console.log(path, 'OK');
});
});
});
});