Questions tagged as 'node.js'

3
answers

access a json object as if it were an array

I need to access a json object as if it were an array, Example I have the following object on the client side: ´ remessa : function (){ var arr2 = [{ 'NrSequenciaDoc' : '7777', 'TipoOcorrencia' : '1', 'NossoNumero'...
asked by 02.08.2017 / 20:57
1
answer

break line node.js using fs

I need to print the variable result with line break in a txt file, I have the following code: var Resultado = formatters.addTrailingZeros(req.query.Nrbanco, 3) + '0000' +...
asked by 31.07.2017 / 19:26
1
answer

Angular: Module name is not loaded in html ngApp tag

I'm doing a basic angled test that reads a simple json and displays on the screen. My problem is that when I put in the module name the module name in the ng-app tag all angular functions stop working. Inspecting the chrome code I found th...
asked by 29.06.2017 / 22:01
1
answer

Query parameterized with node.js and knex.js

In the code below I make a query and fetch the contracts that are completed or not, according to the parameter concluido (0 or 1). How do I make this query bring all contracts when the value of the concluido parameter is not p...
asked by 07.12.2016 / 18:10
1
answer

How to record RTSP stream

I am using the package node-rtsp-stream more Websocket to make the transmission of my IP-Camera, and the visualization happens well, now I would like to know how to record this transmission and I have no idea how to do this. index.js o...
asked by 01.01.2019 / 16:05
1
answer

Using model.find () with LIKE in mongoose

I have a function here to search MongoDB using mongoose, but I would like it to find Brazil when I search for bra, Bra, Sil, sil, etc. I looked at the documentation and followed the example but it did not work, it does not return anything. Here...
asked by 03.01.2019 / 19:40
2
answers

Unknown error: "null" when executing an HTTPPost with Parameters

Explanation: I have a simple Android application, and also a NodeJS server. I have the following permissions on AndroidManifest.xml of my application: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />...
asked by 10.04.2014 / 13:20
1
answer

How to bring an image of a site in the Node API request?

I'm making an application and wanted to give a request that the API bring an image of that site in response. For example, giving the 404 error would like you to bring this . How can I do this? I currently have a method like this: app....
asked by 21.12.2018 / 18:27
1
answer

Problems with angular - NPM

When I give npm install to my project, it returns this error: gyp ERR! configure error gyp ERR! stack Error: unable to get local issuer certificate gyp ERR! stack at TLSSocket.<anonymous> (_tls_wrap.js:1103:38) gyp ERR! stack a...
asked by 12.12.2018 / 18:06
1
answer

How to implement a search engine on a site that is in a Node.js environment

I made a site in the Node.js environment, using Express, Jade template engine, The problem is that the search engine I have ready is in PHP, I do not know if I can run it in Node environment; if you could, how would you do? If it is not possi...
asked by 08.05.2014 / 04:46