Questions tagged as 'node.js'

1
answer

Async request problem with variables

The problem is with variables why the async function is executing after variable assignment. what can I do for the execute function and wait for it to finish to get the value of the variable? var request = require('request'); funct...
asked by 26.03.2018 / 20:26
0
answers

Session in Node.JS

I was reading that middleware Express Session is not ideal for working in production, for which archives the sessions in memory. I've also read that storing session data in memory is not a good practice. So, my question is: what is the be...
asked by 25.03.2018 / 17:32
1
answer

How to print a table-shaped array in nodejs on the console?

How do I get the same output of this array, written in Java, in NodeJS ? public class Matriz { public static void main(String[] args) { int[][] m = new int[4][4]; for (int i = 0; i < m.length ; i++) { for...
asked by 16.04.2018 / 19:31
0
answers

Use text converter voices and windows talk in javascript and nodejs

Does anyone know how to use the text converter and talks windows in javascript or node js? it has to be from windows ..     
asked by 02.04.2018 / 20:44
1
answer

How to create an electron installer for windows?

Good afternoon. I'm working on a project using Electron to create desktop applications. I'm following this tutorial on how to create a windows installer: link However, running the command generates an error and I can not generate the install...
asked by 13.03.2018 / 19:52
1
answer

Configure API for SQL Server database

I have an API that I used with MySQL, but I had to switch to SQL Server. Unfortunately I've never used SQL Server, I do not know if I need to download something to get it. The API was done in JS. The configuration of the sequelize of my API with...
asked by 08.03.2018 / 13:02
1
answer

How to join audio files with node js

I need to concatenate 2 audio files in wav format with node. I have "audio 1" with 5 seconds of duration and "audio 2 with 5 seconds of duration" I need to generate the "audio 3" file with 5 seconds duration, which contains the contents of audio...
asked by 13.02.2018 / 23:04
0
answers

Ionic - build is giving error

When I'm doing build with code: ionic cordova build --release android is giving this error: What is the Solution ??     
asked by 13.02.2018 / 14:37
2
answers

Undefined when accessing class attributes in NodeJS

Good afternoon guys, I was developing an api with node and mongo using express and mongoose and tried to implement the pattern repository, but when accessing the attributes of a class it returns an undefined message that I do not know the reason...
asked by 13.02.2018 / 17:59
1
answer

How to check if file exists (asynchronous)

In Node.JS, I use this method of fs to check if a file exists: const fs = require('fs'); // [...] if (fs.existsSync(path)) { /** Do stuff. */ } The question is: how can I do the same thing, but in an asynchronous way? Note: I use...
asked by 21.03.2018 / 16:35