Skip to content

Instantly share code, notes, and snippets.

@kennethkoontz
Created February 7, 2013 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennethkoontz/4734881 to your computer and use it in GitHub Desktop.
Save kennethkoontz/4734881 to your computer and use it in GitHub Desktop.
underscore.each(latestFiles, function (file, i) {
var currentFile = file.split('/').pop();
fs.readFile(file, 'utf8', function (error, content) {
if (error) {
return cb(error, null);
}
parser.parseString(content, function (error, json) {
if (error) {
return cb(error, null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment