Questions tagged as 'node.js'

1
answer

Node js problem fetching function value

I have the following structure on node: module.exports.find = function(pesquisa,frase){ return new Promise((resolve,reject) => { pesquisa.find(frase, function(err,data){ if(err) throw err;...
asked by 01.10.2017 / 22:37
0
answers

problem with header Authorization node / angular

Hello, I'm trying to access an external link to our application, which should be opened in a new tab. I need to pass the login and password in the header of the call, but I can not. I tried the option below, but it did not work. Has anyone ha...
asked by 02.10.2017 / 20:19
1
answer

How to rotate an angled application with node express

How do I link a login application developed in angular with node and express server. How do I test (pull) the application to the server. The server is running normally on port 3000: var express = require('express'); var bodyParser = require...
asked by 15.08.2017 / 16:34
1
answer

Pass parameters via POST with node.js

I'm trying to access a service that returns an XML Description of the service and there it says I have that inform some parameters via POST. It's the first time I'm having to do this and I can not do it. Can someone give a light?     
asked by 09.08.2017 / 21:04
0
answers

Capture values followed by a textarea in the same function

I'm developing a console with HTML5 + Vue to streamline some simple commands. The inserted command comes via a textarea with v-model="cmd" v-on:keyup.enter="consoleMode()" . I'm using else else, since I only need 4 functions. conso...
asked by 03.08.2017 / 20:49
1
answer

How do I read from position x to position y of a line in node.js via the readFileSync function?

I have a certain .txt file that I want to get some information, but this information is fixed in a certain position of the text line.     
asked by 04.08.2017 / 22:06
0
answers

How to get the return of a sql query using nodejs [closed]

Good afternoon, I'm venturing into nodejs and I'm having some fun and I'm having a hard time getting the return of an sql query. I found some examples on the internet and they even work (the result stays on the console), and it's not what I expe...
asked by 06.08.2017 / 21:52
0
answers

Decrypt IMAP email?

I am receiving emails in my application through IMAP, and everything is showing up the right way except the text that is encrypted, how do I decrypt or configure it to not be encrypted ?? I am using the node-imap library to receive and the...
asked by 22.08.2017 / 22:37
2
answers

Error Including an Image in the app

I created a default project, it includes some .png images in the project in the main folder: Project  - image.png  - index.android.js  - ..... Running run-android displays an error indicating that the image was not found:    "error: bun...
asked by 26.07.2017 / 04:06
1
answer

Generate and format dates with Moment on Nodejs

I'm trying to use Moment to format dates in this way YYYY-MM-DD HH:mm:ss and would like to determine a time period between 00:00:00 p.m. yesterday and 23:59:59 today. Example: Considering today as 07/25/2017, it would look like:...
asked by 25.07.2017 / 22:46