This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log('Módulo de notas cargado') | |
| /* const addNote = (title, contenido) => { | |
| console.log(`Nueva nota con ${title}, ${contenido}`) | |
| return 'Nueva nota' | |
| } */ | |
| // Ejemplo | |
| const fs = require('fs') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let {JSDOM} = require('jsdom') | |
| var resolve = require('resolve'); | |
| resolve('snapsvg', { basedir: __dirname }, function (err, res) { | |
| if (err) console.error(err) | |
| else { | |
| console.log('si') | |
| var scriptDir = res | |
| console.log(scriptDir) |