Skip to content

Instantly share code, notes, and snippets.

View gist:a0d70868fe8434a4fd76851b985ffec9
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')
@juanda99
juanda99 / gist:09c514fe1e7a71072a666047fb135351
Created Dec 22, 2017
Run snapsvg on node server using jsdom
View gist:09c514fe1e7a71072a666047fb135351
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)