Questions tagged as 'node.js'

1
answer

Whatsapp Web uses Node.js?

I would like to know what technologies are used in WhatsApp web development. Ps: Search-level question.     
asked by 27.04.2015 / 16:15
3
answers

Is it possible to import variables in JavaScript (Node.js)?

I have variables in app.js : var G = {}; module.exports = G; var DATA = G.DATA = 'DATA'; var F1 = G.F1 = function(val) { return val; }; In this way, I can export variables under the object G , and at the same time, I can acce...
asked by 05.02.2014 / 00:40
1
answer

How to check duplicate files?

How can I check if two files are the same, even if the name is different in a node js application?     
asked by 02.04.2017 / 12:45
1
answer

Wrong time at Mongodb

When I put in MongoDB schema : created: { type: Date, default: Date.now } The time is 3 hours too long. How can I fix this?     
asked by 01.03.2015 / 17:09
1
answer

Date Conversion

I have a date in this format "2017-10-13T18:15:41.143Z" And would like a date in this format 10/06/2017 01:42:34 PM (-0300) How can I do the conversion?     
asked by 13.10.2017 / 20:20
2
answers

convert json into javascript array

How do I convert the following json into array : { '0': '{ "codBanco":"085","banco":"cecred","cedente":"Aluno 2","datas":"2017/08/30","nosso_numero":"00042200000000099","cedente_cnpj":"06624079975","agencia":"01066","codigo_cedente":...
asked by 23.08.2017 / 20:55
1
answer

Is it possible to do form authentication / validation with pure Node.js?

Today I was interested in Node.js because I could program javascript on the backend and front end. From what I understand - correct me if I'm wrong - Node is a platform that allows me to create server-side applications using JavaScript. Lo...
asked by 08.12.2015 / 02:05
1
answer

Babel for those who have never used NodeJS

Maybe because I have a much better experience with PHP, I've never been a fan of JavaScript. I've always found the language syntax confusing and complicated, and I've often used jQuery to do simple things that many would do with their feet on...
asked by 04.01.2017 / 14:44
1
answer

php vs nodejs performance on websockets server

What I take for granted today is that nodejs is best suited to work with a constant pool of sockets (websockets in this case) because by being single-threaded each new connection generates an extra minimal memory consumption (a few hundred KBs),...
asked by 15.02.2016 / 00:25
2
answers

How to wait for the result of a Restful API in NodeJS

I work with an Amazon JSON API, in which I search the products and treat the information according to their results, but within the NodeJS the API information is written to the console, but not written in the response to the call. How to respond...
asked by 23.02.2014 / 20:18