From a073c93c3cdca31046d65070a47a5a04d8fa257c Mon Sep 17 00:00:00 2001 From: agilema Date: Thu, 7 Sep 2023 12:18:34 -0600 Subject: [PATCH] CLI --- .history/cli_20230907084925.js | 15 ++++++ .history/cli_20230907084932.js | 15 ++++++ .history/cli_20230907084958.js | 15 ++++++ .history/cli_20230907085111.js | 17 ++++++ .history/cli_20230907085905.js | 17 ++++++ .history/cli_20230907090149.js | 17 ++++++ .history/cli_20230907090243.js | 17 ++++++ .history/cli_20230907121411.js | 17 ++++++ .history/cli_20230907121421.js | 17 ++++++ .history/index_20230907085347.js | 92 ++++++++++++++++++++++++++++++++ .history/index_20230907085436.js | 92 ++++++++++++++++++++++++++++++++ .history/index_20230907085533.js | 92 ++++++++++++++++++++++++++++++++ .history/index_20230907085542.js | 92 ++++++++++++++++++++++++++++++++ .history/index_20230907085633.js | 92 ++++++++++++++++++++++++++++++++ .history/index_20230907085704.js | 92 ++++++++++++++++++++++++++++++++ cli.js | 12 +++-- index.js | 12 +++-- 17 files changed, 713 insertions(+), 10 deletions(-) create mode 100644 .history/cli_20230907084925.js create mode 100644 .history/cli_20230907084932.js create mode 100644 .history/cli_20230907084958.js create mode 100644 .history/cli_20230907085111.js create mode 100644 .history/cli_20230907085905.js create mode 100644 .history/cli_20230907090149.js create mode 100644 .history/cli_20230907090243.js create mode 100644 .history/cli_20230907121411.js create mode 100644 .history/cli_20230907121421.js create mode 100644 .history/index_20230907085347.js create mode 100644 .history/index_20230907085436.js create mode 100644 .history/index_20230907085533.js create mode 100644 .history/index_20230907085542.js create mode 100644 .history/index_20230907085633.js create mode 100644 .history/index_20230907085704.js diff --git a/.history/cli_20230907084925.js b/.history/cli_20230907084925.js new file mode 100644 index 0000000..c3254fa --- /dev/null +++ b/.history/cli_20230907084925.js @@ -0,0 +1,15 @@ +import mdLinks from "./index" + +const [, , ...args] = process.argv +const route = args[1]; +const validate = args.includes(--validate); +const stats = args[2].includes(--stats); +const option = { validate, stats }; + +mdLinks(route, option) +.then(()=>{ +//si options es = = a validate +}) +.catch((error)=>{ + console.log(error) +}) \ No newline at end of file diff --git a/.history/cli_20230907084932.js b/.history/cli_20230907084932.js new file mode 100644 index 0000000..4fea565 --- /dev/null +++ b/.history/cli_20230907084932.js @@ -0,0 +1,15 @@ +import mdLinks from "./index" + +const [, , ...args] = process.argv +const route = args[1]; +const validate = args.includes(--validate); +const stats = args.includes(--stats); +const option = { validate, stats }; + +mdLinks(route, option) +.then(()=>{ +//si options es = = a validate +}) +.catch((error)=>{ + console.log(error) +}) \ No newline at end of file diff --git a/.history/cli_20230907084958.js b/.history/cli_20230907084958.js new file mode 100644 index 0000000..1976bbf --- /dev/null +++ b/.history/cli_20230907084958.js @@ -0,0 +1,15 @@ +import mdLinks from "./index" + +const [, , ...args] = process.argv +const route = args[1]; +const validate = args.includes('--validate'); +const stats = args.includes('--stats'); +const option = { validate, stats }; + +mdLinks(route, option) +.then(()=>{ +//si options es = = a validate +}) +.catch((error)=>{ + console.log(error) +}) \ No newline at end of file diff --git a/.history/cli_20230907085111.js b/.history/cli_20230907085111.js new file mode 100644 index 0000000..78cc0fd --- /dev/null +++ b/.history/cli_20230907085111.js @@ -0,0 +1,17 @@ +import mdLinks from "./index" + +const [, , ...args] = process.argv +console.log(args) +const route = args[0]; +const validate = args.includes('--validate'); +const stats = args.includes('--stats'); +const option = { validate, stats }; + +mdLinks(route, option) +.then((result)=>{ +//si options es = = a validate +console.log(result) +}) +.catch((error)=>{ + console.log(error) +}) \ No newline at end of file diff --git a/.history/cli_20230907085905.js b/.history/cli_20230907085905.js new file mode 100644 index 0000000..78cc0fd --- /dev/null +++ b/.history/cli_20230907085905.js @@ -0,0 +1,17 @@ +import mdLinks from "./index" + +const [, , ...args] = process.argv +console.log(args) +const route = args[0]; +const validate = args.includes('--validate'); +const stats = args.includes('--stats'); +const option = { validate, stats }; + +mdLinks(route, option) +.then((result)=>{ +//si options es = = a validate +console.log(result) +}) +.catch((error)=>{ + console.log(error) +}) \ No newline at end of file diff --git a/.history/cli_20230907090149.js b/.history/cli_20230907090149.js new file mode 100644 index 0000000..3ce0f49 --- /dev/null +++ b/.history/cli_20230907090149.js @@ -0,0 +1,17 @@ +import mdLinks from "./index.js" + +const [, , ...args] = process.argv +console.log(args) +const route = args[0]; +const validate = args.includes('--validate'); +const stats = args.includes('--stats'); +const option = { validate, stats }; + +mdLinks(route, option) +.then((result)=>{ +//si options es = = a validate +console.log(result) +}) +.catch((error)=>{ + console.log(error) +}) \ No newline at end of file diff --git a/.history/cli_20230907090243.js b/.history/cli_20230907090243.js new file mode 100644 index 0000000..3ce0f49 --- /dev/null +++ b/.history/cli_20230907090243.js @@ -0,0 +1,17 @@ +import mdLinks from "./index.js" + +const [, , ...args] = process.argv +console.log(args) +const route = args[0]; +const validate = args.includes('--validate'); +const stats = args.includes('--stats'); +const option = { validate, stats }; + +mdLinks(route, option) +.then((result)=>{ +//si options es = = a validate +console.log(result) +}) +.catch((error)=>{ + console.log(error) +}) \ No newline at end of file diff --git a/.history/cli_20230907121411.js b/.history/cli_20230907121411.js new file mode 100644 index 0000000..6b69eae --- /dev/null +++ b/.history/cli_20230907121411.js @@ -0,0 +1,17 @@ +import {mdLink} from "./index.js" + +const [, , ...args] = process.argv +console.log(args) +const route = args[0]; +const validate = args.includes('--validate'); +const stats = args.includes('--stats'); +const option = { validate, stats }; + +mdLinks(route, option) +.then((result)=>{ +//si options es = = a validate +console.log(result) +}) +.catch((error)=>{ + console.log(error) +}) \ No newline at end of file diff --git a/.history/cli_20230907121421.js b/.history/cli_20230907121421.js new file mode 100644 index 0000000..b344e26 --- /dev/null +++ b/.history/cli_20230907121421.js @@ -0,0 +1,17 @@ +import {mdLinks} from "./index.js" + +const [, , ...args] = process.argv +console.log(args) +const route = args[0]; +const validate = args.includes('--validate'); +const stats = args.includes('--stats'); +const option = { validate, stats }; + +mdLinks(route, option) +.then((result)=>{ +//si options es = = a validate +console.log(result) +}) +.catch((error)=>{ + console.log(error) +}) \ No newline at end of file diff --git a/.history/index_20230907085347.js b/.history/index_20230907085347.js new file mode 100644 index 0000000..0edbf7c --- /dev/null +++ b/.history/index_20230907085347.js @@ -0,0 +1,92 @@ +//Promesa +//Callback resolve cuando la promesa se cumple +//Callback reject es cuando NO se cumple +//cree promesa pero se consume despues + +import { + routeAbsolute, + routeValid, + isFiles, + fileDirectory, + filterMD, + fileToStringArray, + linkFinder, + validateLinks, + statsLinks, + statsBroken, + fusionStats, +} from "./fuctions.js"; + +export function mdLinks(path, options) { + return new Promise((resolve, reject) => { + //Calcula la ruta absoluta a partir de la ruta proporcionada + const routeA = routeAbsolute(path); + //Verifica si la ruta es válida usando la función + if (routeValid(routeA) === false) { + //Si no es válida, se rechaza + reject("Route invalid"); + } + //Dependiendo de si la ruta representa un archivo o un directorio, + //se crea un arreglo llamado arrayAllFile que contendrá rutas de archivos. + let arrayAllFile = []; //contiene todos los archivos + if (isFiles(routeA) === true) { + arrayAllFile.push(routeA); + } else { + arrayAllFile = fileDirectory(routeA); + } + + const mdFiltro = filterMD(arrayAllFile); + if (mdFiltro.length === 0) reject("Does not have MD files"); + let contentMD = fileToStringArray(mdFiltro); + + const theSameLinks = linkFinder(contentMD); + + //constante donde vamos a gusradar las promesa + const arrayPromes = []; + if (options.validate === true && options.stats === false) { + theSameLinks.forEach((element) => { + arrayPromes.push(validateLinks(element)); + }); + Promise.all(arrayPromes) + .then((resposes) => { + resolve(resposes); + }) + .catch((errors) => { + console.log("errors"); + }); + } else if (options.validate === false && options.stats === false) { + resolve(theSameLinks); + + // theSameLinks.forEach((element) => { + 5// console.log(element); + }); + } else if (options.validate === false && options.stats === true) { + const totalLinks = fusionStats(theSameLinks); + const totalstats = statsLinks(theSameLinks); + + resolve({ + total: totalLinks, + unique: totalstats, + }); + } else if (options.validate === true && options.stats === true) { + const totalLinks = fusionStats(theSameLinks); + const totalstats = statsLinks(theSameLinks); + const totalBroken = statsBroken(theSameLinks); + resolve({ + total: totalLinks, + unique: totalstats, + broken: totalBroken, + }); + } + }); +} + +// Consumir la promesa +//links para función de links + +mdLinks("./README.md", { + validate: true, + stats: true, +}).then((links) => { + console.log("keeping promise!", links); +}); diff --git a/.history/index_20230907085436.js b/.history/index_20230907085436.js new file mode 100644 index 0000000..44bd16d --- /dev/null +++ b/.history/index_20230907085436.js @@ -0,0 +1,92 @@ +//Promesa +//Callback resolve cuando la promesa se cumple +//Callback reject es cuando NO se cumple +//cree promesa pero se consume despues + +import { + routeAbsolute, + routeValid, + isFiles, + fileDirectory, + filterMD, + fileToStringArray, + linkFinder, + validateLinks, + statsLinks, + statsBroken, + fusionStats, +} from "./fuctions.js"; + +export function mdLinks(path, options) { + return new Promise((resolve, reject) => { + //Calcula la ruta absoluta a partir de la ruta proporcionada + const routeA = routeAbsolute(path); + //Verifica si la ruta es válida usando la función + if (routeValid(routeA) === false) { + //Si no es válida, se rechaza + reject("Route invalid"); + } + //Dependiendo de si la ruta representa un archivo o un directorio, + //se crea un arreglo llamado arrayAllFile que contendrá rutas de archivos. + let arrayAllFile = []; //contiene todos los archivos + if (isFiles(routeA) === true) { + arrayAllFile.push(routeA); + } else { + arrayAllFile = fileDirectory(routeA); + } + + const mdFiltro = filterMD(arrayAllFile); + if (mdFiltro.length === 0) reject("Does not have MD files"); + let contentMD = fileToStringArray(mdFiltro); + + const theSameLinks = linkFinder(contentMD); + + //constante donde vamos a gusradar las promesa + const arrayPromes = []; + if (options.validate === true && options.stats === false) { + theSameLinks.forEach((element) => { + arrayPromes.push(validateLinks(element)); + }); + Promise.all(arrayPromes) + .then((resposes) => { + resolve(resposes); + }) + .catch((errors) => { + console.log("errors"); + }); + } else if (options.validate === false && options.stats === false) { + resolve(theSameLinks); + + /*theSameLinks.forEach((element) => { + console.log(element); + });*/ + } else if (options.validate === false && options.stats === true) { + const totalLinks = fusionStats(theSameLinks); + const totalstats = statsLinks(theSameLinks); + + resolve({ + total: totalLinks, + unique: totalstats, + }); + } else if (options.validate === true && options.stats === true) { + const totalLinks = fusionStats(theSameLinks); + const totalstats = statsLinks(theSameLinks); + const totalBroken = statsBroken(theSameLinks); + resolve({ + total: totalLinks, + unique: totalstats, + broken: totalBroken, + }); + } + }); +} + +// Consumir la promesa +//links para función de links + +mdLinks("./README.md", { + validate: true, + stats: true, +}).then((links) => { + console.log("keeping promise!", links); +}); diff --git a/.history/index_20230907085533.js b/.history/index_20230907085533.js new file mode 100644 index 0000000..a481836 --- /dev/null +++ b/.history/index_20230907085533.js @@ -0,0 +1,92 @@ +//Promesa +//Callback resolve cuando la promesa se cumple +//Callback reject es cuando NO se cumple +//cree promesa pero se consume despues + +import { + routeAbsolute, + routeValid, + isFiles, + fileDirectory, + filterMD, + fileToStringArray, + linkFinder, + validateLinks, + statsLinks, + statsBroken, + fusionStats, +} from "./fuctions.js"; + +export function mdLinks(path, options) { + return new Promise((resolve, reject) => { + //Calcula la ruta absoluta a partir de la ruta proporcionada + const routeA = routeAbsolute(path); + //Verifica si la ruta es válida usando la función + if (routeValid(routeA) === false) { + //Si no es válida, se rechaza + reject("Route invalid"); + } + //Dependiendo de si la ruta representa un archivo o un directorio, + //se crea un arreglo llamado arrayAllFile que contendrá rutas de archivos. + let arrayAllFile = []; //contiene todos los archivos + if (isFiles(routeA) === true) { + arrayAllFile.push(routeA); + } else { + arrayAllFile = fileDirectory(routeA); + } + + const mdFiltro = filterMD(arrayAllFile); + if (mdFiltro.length === 0) reject("Does not have MD files"); + let contentMD = fileToStringArray(mdFiltro); + + const theSameLinks = linkFinder(contentMD); + + //constante donde vamos a gusradar las promesa + const arrayPromes = []; + if (options.validate === true && options.stats === false) { + theSameLinks.forEach((element) => { + arrayPromes.push(validateLinks(element)); + }); + Promise.all(arrayPromes) + .then((resposes) => { + resolve(resposes); + }) + .catch((errors) => { + console.log("errors"); + }); + } else if (options.validate === false && options.stats === false) { + resolve(theSameLinks); + + /*theSameLinks.forEach((element) => { + console.log(element); + });*/ + } else if (options.validate === false && options.stats === true) { + const totalLinks = fusionStats(theSameLinks); + const totalstats = statsLinks(theSameLinks); + + resolve({ + total: totalLinks + unique: totalstats, + }); + } else if (options.validate === true && options.stats === true) { + const totalLinks = fusionStats(theSameLinks); + const totalstats = statsLinks(theSameLinks); + const totalBroken = statsBroken(theSameLinks); + resolve({ + total: totalLinks, + unique: totalstats, + broken: totalBroken, + }); + } + }); +} + +// Consumir la promesa +//links para función de links + +mdLinks("./README.md", { + validate: true, + stats: true, +}).then((links) => { + console.log("keeping promise!", links); +}); diff --git a/.history/index_20230907085542.js b/.history/index_20230907085542.js new file mode 100644 index 0000000..44bd16d --- /dev/null +++ b/.history/index_20230907085542.js @@ -0,0 +1,92 @@ +//Promesa +//Callback resolve cuando la promesa se cumple +//Callback reject es cuando NO se cumple +//cree promesa pero se consume despues + +import { + routeAbsolute, + routeValid, + isFiles, + fileDirectory, + filterMD, + fileToStringArray, + linkFinder, + validateLinks, + statsLinks, + statsBroken, + fusionStats, +} from "./fuctions.js"; + +export function mdLinks(path, options) { + return new Promise((resolve, reject) => { + //Calcula la ruta absoluta a partir de la ruta proporcionada + const routeA = routeAbsolute(path); + //Verifica si la ruta es válida usando la función + if (routeValid(routeA) === false) { + //Si no es válida, se rechaza + reject("Route invalid"); + } + //Dependiendo de si la ruta representa un archivo o un directorio, + //se crea un arreglo llamado arrayAllFile que contendrá rutas de archivos. + let arrayAllFile = []; //contiene todos los archivos + if (isFiles(routeA) === true) { + arrayAllFile.push(routeA); + } else { + arrayAllFile = fileDirectory(routeA); + } + + const mdFiltro = filterMD(arrayAllFile); + if (mdFiltro.length === 0) reject("Does not have MD files"); + let contentMD = fileToStringArray(mdFiltro); + + const theSameLinks = linkFinder(contentMD); + + //constante donde vamos a gusradar las promesa + const arrayPromes = []; + if (options.validate === true && options.stats === false) { + theSameLinks.forEach((element) => { + arrayPromes.push(validateLinks(element)); + }); + Promise.all(arrayPromes) + .then((resposes) => { + resolve(resposes); + }) + .catch((errors) => { + console.log("errors"); + }); + } else if (options.validate === false && options.stats === false) { + resolve(theSameLinks); + + /*theSameLinks.forEach((element) => { + console.log(element); + });*/ + } else if (options.validate === false && options.stats === true) { + const totalLinks = fusionStats(theSameLinks); + const totalstats = statsLinks(theSameLinks); + + resolve({ + total: totalLinks, + unique: totalstats, + }); + } else if (options.validate === true && options.stats === true) { + const totalLinks = fusionStats(theSameLinks); + const totalstats = statsLinks(theSameLinks); + const totalBroken = statsBroken(theSameLinks); + resolve({ + total: totalLinks, + unique: totalstats, + broken: totalBroken, + }); + } + }); +} + +// Consumir la promesa +//links para función de links + +mdLinks("./README.md", { + validate: true, + stats: true, +}).then((links) => { + console.log("keeping promise!", links); +}); diff --git a/.history/index_20230907085633.js b/.history/index_20230907085633.js new file mode 100644 index 0000000..195f00f --- /dev/null +++ b/.history/index_20230907085633.js @@ -0,0 +1,92 @@ +//Promesa +//Callback resolve cuando la promesa se cumple +//Callback reject es cuando NO se cumple +//cree promesa pero se consume despues + +import { + routeAbsolute, + routeValid, + isFiles, + fileDirectory, + filterMD, + fileToStringArray, + linkFinder, + validateLinks, + statsLinks, + statsBroken, + fusionStats, +} from "./fuctions.js"; + +export function mdLinks(path, options) { + return new Promise((resolve, reject) => { + //Calcula la ruta absoluta a partir de la ruta proporcionada + const routeA = routeAbsolute(path); + //Verifica si la ruta es válida usando la función + if (routeValid(routeA) === false) { + //Si no es válida, se rechaza + reject("Route invalid"); + } + //Dependiendo de si la ruta representa un archivo o un directorio, + //se crea un arreglo llamado arrayAllFile que contendrá rutas de archivos. + let arrayAllFile = []; //contiene todos los archivos + if (isFiles(routeA) === true) { + arrayAllFile.push(routeA); + } else { + arrayAllFile = fileDirectory(routeA); + } + + const mdFiltro = filterMD(arrayAllFile); + if (mdFiltro.length === 0) reject("Does not have MD files"); + let contentMD = fileToStringArray(mdFiltro); + + const theSameLinks = linkFinder(contentMD); + + //constante donde vamos a gusradar las promesa + const arrayPromes = []; + if (options.validate === true && options.stats === false) { + theSameLinks.forEach((element) => { + arrayPromes.push(validateLinks(element)); + }); + Promise.all(arrayPromes) + .then((resposes) => { + resolve(resposes); + }) + .catch((errors) => { + console.log("errors"); + }); + } else if (options.validate === false && options.stats === false) { + resolve(theSameLinks); + + /*theSameLinks.forEach((element) => { + console.log(element); + });*/ + } else if (options.validate === false && options.stats === true) { + const totalLinks = fusionStats(theSameLinks); + const totalstats = statsLinks(theSameLinks); + resolve({ + total: totalLinks, + unique: totalstats, + }); + + } else if (options.validate === true && options.stats === true) { + const totalLinks = fusionStats(theSameLinks); + const totalstats = statsLinks(theSameLinks); + const totalBroken = statsBroken(theSameLinks); + resolve({ + total: totalLinks, + unique: totalstats, + broken: totalBroken, + }); + } + }); +} + +// Consumir la promesa +//links para función de links + +mdLinks("./README.md", { + validate: true, + stats: true, +}).then((links) => { + console.log("keeping promise!", links); +}); diff --git a/.history/index_20230907085704.js b/.history/index_20230907085704.js new file mode 100644 index 0000000..b2d33ac --- /dev/null +++ b/.history/index_20230907085704.js @@ -0,0 +1,92 @@ +//Promesa +//Callback resolve cuando la promesa se cumple +//Callback reject es cuando NO se cumple +//cree promesa pero se consume despues + +import { + routeAbsolute, + routeValid, + isFiles, + fileDirectory, + filterMD, + fileToStringArray, + linkFinder, + validateLinks, + statsLinks, + statsBroken, + fusionStats, +} from "./fuctions.js"; + +export function mdLinks(path, options) { + return new Promise((resolve, reject) => { + //Calcula la ruta absoluta a partir de la ruta proporcionada + const routeA = routeAbsolute(path); + //Verifica si la ruta es válida usando la función + if (routeValid(routeA) === false) { + //Si no es válida, se rechaza + reject("Route invalid"); + } + //Dependiendo de si la ruta representa un archivo o un directorio, + //se crea un arreglo llamado arrayAllFile que contendrá rutas de archivos. + let arrayAllFile = []; //contiene todos los archivos + if (isFiles(routeA) === true) { + arrayAllFile.push(routeA); + } else { + arrayAllFile = fileDirectory(routeA); + } + + const mdFiltro = filterMD(arrayAllFile); + if (mdFiltro.length === 0) reject("Does not have MD files"); + let contentMD = fileToStringArray(mdFiltro); + + const theSameLinks = linkFinder(contentMD); + + //constante donde vamos a gusradar las promesa + const arrayPromes = []; + if (options.validate === true && options.stats === false) { + theSameLinks.forEach((element) => { + arrayPromes.push(validateLinks(element)); + }); + Promise.all(arrayPromes) + .then((resposes) => { + resolve(resposes); + }) + .catch((errors) => { + console.log("errors"); + }); + } else if (options.validate === false && options.stats === false) { + resolve(theSameLinks); + + /*theSameLinks.forEach((element) => { + console.log(element); + });*/ + } else if (options.validate === false && options.stats === true) { + const totalLinks = fusionStats(theSameLinks); + const totalstats = statsLinks(theSameLinks); + resolve({ + total: totalLinks, + unique: totalstats, + }); + + } else if (options.validate === true && options.stats === true) { + const totalLinks = fusionStats(theSameLinks); + const totalstats = statsLinks(theSameLinks); + const totalBroken = statsBroken(theSameLinks); + resolve({ + total: totalLinks, + unique: totalstats, + broken: totalBroken, + }); + } + }); +} + +// Consumir la promesa +//links para función de links +/* +mdLinks("./README.md", { + validate: true, + stats: true, +}).then((links) => { + console.log("keeping promise!", links); +});*/ diff --git a/cli.js b/cli.js index 430abaf..b344e26 100644 --- a/cli.js +++ b/cli.js @@ -1,14 +1,16 @@ -import mdLinks from "./index" +import {mdLinks} from "./index.js" const [, , ...args] = process.argv -const route = args[1]; -const validate = args[2].includes(--validate); -const stats = args[2].includes(--stats); +console.log(args) +const route = args[0]; +const validate = args.includes('--validate'); +const stats = args.includes('--stats'); const option = { validate, stats }; mdLinks(route, option) -.then(()=>{ +.then((result)=>{ //si options es = = a validate +console.log(result) }) .catch((error)=>{ console.log(error) diff --git a/index.js b/index.js index 42c2248..b2d33ac 100644 --- a/index.js +++ b/index.js @@ -55,17 +55,19 @@ export function mdLinks(path, options) { console.log("errors"); }); } else if (options.validate === false && options.stats === false) { - theSameLinks.forEach((element) => { + resolve(theSameLinks); + + /*theSameLinks.forEach((element) => { console.log(element); - }); + });*/ } else if (options.validate === false && options.stats === true) { const totalLinks = fusionStats(theSameLinks); const totalstats = statsLinks(theSameLinks); - resolve({ total: totalLinks, unique: totalstats, }); + } else if (options.validate === true && options.stats === true) { const totalLinks = fusionStats(theSameLinks); const totalstats = statsLinks(theSameLinks); @@ -81,10 +83,10 @@ export function mdLinks(path, options) { // Consumir la promesa //links para función de links - +/* mdLinks("./README.md", { validate: true, stats: true, }).then((links) => { console.log("keeping promise!", links); -}); +});*/