Posts by João Victor Palmeira • 89 points
5 posts
-
1
votes2
answers3010
viewsA: Mongodb connection with nodejs
You can perform as follows: require('dotenv').config(); const { MongoClient } = require('mongodb'); class MyConnect extends MongoClient { constructor(url, options) { super(url, options); this.client…
-
0
votes7
answers10092
viewsA: How to make child form change values in parent form C#?
It worked for me that way. public partial class Form1 : Form { public Form1() { InitializeComponent(); } // no meu caso quis pegar um Objeto do form filho. private Cliente cliente = null; public…
-
2
votes2
answers3564
viewsA: How to send/receive data from client to server?
Keep in mind that everything on the computer is programmatic, you have to create your pattern or research patterns because the community has already made many patterns as you also wanted to make…
node.jsanswered João Victor Palmeira 89 -
0
votes3
answers4238
viewsA: How to find the internal IP?
var object_ip = function(){ return new Promise( function( resolve, reject ){ let Ips = {}; let counter = 1; let os=require('os'); let ifaces=os.networkInterfaces(); …
-
5
votes2
answers22669
viewsA: Node.js - How to read user input from the console?
process.stdin.on('readable', ()=>{ // reads what is being typed. let variable = process.stdin.read(); // trying to read …
node.jsanswered João Victor Palmeira 89