You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ahora que sabes que el archivo es del tipo Markdown, lee este archivo y retorna su contenido. Para ver este contenido puedes utilizar un console.log() al momento de ejecutar la función.
El módulo fs (FileSystem) te será de utilidad. Como mencionamos en las consideraciones técnicas, preferimos que uses readFile (en lugar de readFileSync) y recomendamos el módulo fs/promises para utilizar estas funciones con promesas.
The text was updated successfully, but these errors were encountered:
Ahora que sabes que el archivo es del tipo Markdown, lee este archivo y retorna su contenido. Para ver este contenido puedes utilizar un console.log() al momento de ejecutar la función.
El módulo fs (FileSystem) te será de utilidad. Como mencionamos en las consideraciones técnicas, preferimos que uses readFile (en lugar de readFileSync) y recomendamos el módulo fs/promises para utilizar estas funciones con promesas.
The text was updated successfully, but these errors were encountered: