Questions tagged as 'node.js'

1
answer

It is possible to create image thumbnails with pure Node.js

Well I found a library, which is great for image manipulation, and works perfectly, in this case GraphicsMagick for node.js , but there is a problem because there are dependencies of other softwares installed on the machine where the node wil...
asked by 11.07.2014 / 02:40
1
answer

How to send a video via POST?

I have an application that is being written in Node.js and using Electron, I need to send a video in mp4 format via POST to the server. How can I do this? EDIT 1: In the application, I use FFmpeg to create a five minute video from the we...
asked by 09.11.2017 / 19:48
2
answers

Request of type Options

My question is, whenever I make a request before it is actually sending a request of type Options is sent, I wanted to know what exactly it is for. What impact can I have when removing this request both in performance (internet) in both security...
asked by 14.11.2017 / 17:40
1
answer

Integrate application nodejs to php site on different servers?

How can I integrate a chat application hosted in Heroku to my PHP project on another server? The application is simple and does not use bank, the idea would be that in PHP when doing login automatically in Heroku the user enters the chat...
asked by 09.09.2014 / 08:34
2
answers

Image not displayed when being listed in Node Js

I am not able to list the images saved in the e node with the express, when I try to list my View does not display the image. My configuration file: module.exports = function(){ //recuperando a biblioteca do express var express...
asked by 29.09.2017 / 19:40
2
answers

Convert utf-8 codes to unicode

Well, I have a JSON where all unicode symbols like this "★" are in this format: "\ u2605" have some way to convert those codes to the symbols when my program NodeJS read the JSON ? Example of how it is: {"name":"\u2605 Bayonet","pri...
asked by 24.08.2017 / 16:47
3
answers

Transform an Json Array into another JSON using node

Good morning, I'm having a problem mounting a JSON using NodeJS. I have a return from a giant SQL that basically follows the structure below. [ { "numDoc":"0000001", "OutrosCampos":"outrosDados", "itens":[ { "it...
asked by 10.07.2017 / 12:43
1
answer

What does this expression mean?

By studying Node-Red a bit I came across the following expression, {{#header.url} . Many expressions of the type are present in the code, for example: {{/header.url}} , {{#header.image}} , etc. Here is a snippet of code: &...
asked by 13.04.2017 / 21:25
1
answer

Differences between authentication types

I was doing some research on authentication, since I want to improve this part of my system, I found some cases like Basic, oAuth1 and oAuth2. What's the difference between them? What are they really? I read a bit about, but I could not under...
asked by 24.05.2017 / 14:27
1
answer

Using a root directory in the NodeJS include

I'm learning NodeJS and I started to create a project just to get accustomed to developing with it, however, I'm bothered by the amount of ../../../../../ used to include a code. How can I use the root folder of my application as a path r...
asked by 29.08.2017 / 21:32