Questions tagged as 'node.js'

1
answer

Folder Listing in Node.js

People need to see all the files in a folder and list it, but calm what I want is to enter the folder and read all the files and list, but if you find a folder between it and list what's in it too . This is by ordering the files by date. Can...
asked by 10.11.2018 / 08:29
1
answer

Node, server send information to page (bank password control, lab ...)

Good evening! I do not know if it is possible to implement the following situation: I have a html page that is a monitor (has the last number called), on the second page html, the user can click to request the next number. I can even exchange...
asked by 04.11.2018 / 06:04
2
answers

How to upgrade Node.js from version 8 to 10 on Linux Ubuntu via SSH?

I tried several tutorials on the internet before coming to post the doubt here in StackOverflow and no tip worked. My repository is with version 8 of the Node and the same, even removing, back. I need to install Node 10. I've tried: sudo...
asked by 10.12.2018 / 15:32
1
answer

Comment on .env files [closed]

Is there any way to write comments in an .env file in NodeJS projects?     
asked by 29.09.2018 / 23:24
1
answer

Read user input without using the prompt function

The only way to assign a value to a variable by the user in JavaScript is to use the prompt function or is there any other? Because in Python, for example, we can do this: numero = int(input("Informe um número: ")) I ask this, bec...
asked by 30.09.2018 / 18:57
1
answer

Callback with Redux-thunk

I would like to know how I would do to have a return on dispath call something like this, with React: this.props.store.dispatch(dados, result => { console.log(result); }); In this line above console.log never enter! index....
asked by 10.09.2018 / 20:02
1
answer

How to send html form to route node? Crud!

Hello, I have to send the information of an html form via POST to a crud on node and mongodb! I can not do it! follows the code below: pastebin code: link     
asked by 16.10.2018 / 14:29
1
answer

Does Npm run without the Node installed?

I use a Linux Ubuntu here, and I installed vue-cli with npm version 3.5.2, installing the node-modules folder > usually with all dependencies inside, but when I run a node -v it prints the following message on the terminal The 'nod...
asked by 31.08.2018 / 22:22
1
answer

read data from a url and download

Hello, I need to download several urls, I execute the code below inside a for, but only works for the last url. var anchor = document.createElement('a'); anchor.href = 'http://e-gov.betha.com.br/e-nota/teste'; anchor.download = 'http://e-gov.b...
asked by 08.10.2018 / 17:01
1
answer

Read data from a url

I would like to get data from a url address Searching found this answer Implemented for my reality var http = require('http'); var options = { host: 'http://192.168.1.6', path: '/sistema.cgi...
asked by 20.08.2018 / 16:18