Skip to content

Instantly share code, notes, and snippets.

@questsin
Created February 20, 2019 14:59
Show Gist options
  • Save questsin/a3c3052bba3076f5c4c16fb95259ef87 to your computer and use it in GitHub Desktop.
Save questsin/a3c3052bba3076f5c4c16fb95259ef87 to your computer and use it in GitHub Desktop.
/*jslint nomen: true */
/*global prompt, alert, confirm, window, self, Audio, $, jQuery, console, _, document, */
/*jslint node: true, regexp: true, maxerr: 200 */
const fs = require('fs');
const testFolder = '../metadata/';
fs.readdir(testFolder, (err, files) => {
var match = new RegExp(/\.(js)/g);
files.forEach(file => {
if (match.test(file)) {
console.log(testFolder + file);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment