@paolahuyo/md-links
Version:
Library that reads .md files and validates (--validates) the status of the links inside .md files and can gives links statistics (--stats)
20 lines (17 loc) • 396 B
JavaScript
var options = {
validate: false,
stats: false
};
//Function that fills the object inputOptions with options
var inputOptions = () => {
if (process.argv.includes('--validate')) {
options.validate = true;
} if (process.argv.includes('--stats')) {
options.stats = true;
}
return options
}
//console.log(inputOptions())
module.exports = {
inputOptions
}