Questions tagged as 'node.js'

1
answer

JSON object sharing between different clusters

Good afternoon, I would like to know how do I share a JSON object between different clusters. I currently have 3 clusters listening to three different ports. It is necessary to have an object saved in memory so that the three clusters can access...
asked by 01.12.2016 / 17:15
1
answer

How to merge an already mined file with grunt-contrib-uglify

The situation is as follows, I'm using grunt-contrib-uglify to mine the javascript for my project in a single file, the problem is that one of these files is already mined, and uglify does not add it to my target file, causing syntax error i...
asked by 13.03.2015 / 21:39
1
answer

How to detect MySQL changes in NodeJS?

Good evening, Has anyone used this package or do you know of a similar one that works? Link: link Purpose: to launch an event when there is a change in the database. Before I gave an error saying that it was not allowed to monitor my...
asked by 29.06.2016 / 23:28
1
answer

Nodejs deploy in production

What are the best practices for doing deploy in production of a Node.JS application? I would like to know how the deploy in production of API's Node.JS is done today. My application is now dockerized and running in the local environme...
asked by 18.03.2017 / 17:14
3
answers

Command "npm" is not recognized by Command Prompt

I have a project with a package.json , in it I have everything configured. I just made the clone of this same project on another machine, my git clone worked without problems. But when I give the command npm install in...
asked by 02.06.2014 / 23:00
3
answers

Javascript / Nodejs setInterval with scheduled start, simple cron style

For JavaScript and NodeJS, there are n libraries that are robust in Cron style, such as node-cron . But they are complex for simple situations, they are heavy to download in the browser or require additional dependency on NodeJS, which make...
asked by 09.02.2014 / 13:25
1
answer

IDE / Text editors for Node.js [closed]

What are the best IDE options or Text Editors for NodeJS development? My need is to develop large projects with JavaScript / Node.js , here are some of the options below. If possible cite the advantages of using the indicated software. Nod...
asked by 24.08.2015 / 01:10
2
answers

How to identify a number (in words) in a phrase

I need a script to identify a number in a sentence. Ex: " Two weeks ago" - > number = 2 It can be even by replacement even. So: If str contains two , replace ("two", 2) Is there a node module that does this? I have already sea...
asked by 25.07.2016 / 01:07
2
answers

Generate random password

Hello, I noticed that there are generate-password libraries and password-generator for random password generation. But importing a library just for this might not be a good idea. Is there any way in the node itself to do this?     
asked by 10.08.2016 / 14:18
1
answer

Back-end applications with node.js

I've seen a few lectures on Node.js , its capacity, usability, market, etc ... But all of this information got really "scrambled" for me, about him. What I know, correct me if I'm wrong, is that it works like server , very similar to A...
asked by 11.01.2016 / 23:11