article-parser
Version:
Extract clean article data from given URL.
19 lines (16 loc) • 399 B
JavaScript
var fs = require('fs');
var path = require('path');
/**
* Import specs
*/
var dirs = ['parser', 'utils', 'configure']; // , 'utils', 'configure'
dirs.forEach((dir) => {
let where = './test/specs/' + dir;
if (fs.existsSync(where)) {
fs.readdirSync(where).forEach((file) => {
if (path.extname(file) === '.js') {
require(path.join('.' + where, file));
}
});
}
});