Posts by Belchior Oliveira • 78 points
3 posts
-
1
votes2
answers2482
viewsA: Grunt - node_modules folder outside the project
Dude, if you frequently use certain modules like Express, Grunt or Gulp, you can install them as global modules: npm install -g nome_modulo Inside your project when you load a dependency Node will…
-
3
votes3
answers226
viewsQ: Picking Indentation with Regular Expression
I would like someone to help me create an ER that takes only one tag and all lines that are indented in front. example: aaa abab aca marcacao aaa abab aca cc cc bb With the above code the ER would…
-
2
votes3
answers1894
viewsA: Is it possible to import Javascript variables (Node.js)?
I believe you want to do this: file js. module.exports = { DATA: "MY DATA" } app js. var f = require('file.js'); console.log(f.DATA); // MY DATA…