What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-02 14:15:03
ssh tunnel connect to mongodb in node.js
var config = { username:'myusername', host:'my.ip.address', agent : process.env.SSH_AUTH_SOCK, privateKey:require('fs').readFileSync('/Users/myusername/.ssh/id_rsa'), port:22, dstPort:27017, password:'mypassword' }; var server... Add solution -
Javascript 2022-01-31 03:57:19
Manually Parsing Plain text in Node.js
/* This code comes from Vincent Lab And it has a video version linked here: https://www.youtube.com/watch?v=fy2RF9JR1BI */ // Import dependencies const fs = require("fs"); // Read the text file and split it on new lines const lines = f... Add solution -
Javascript 2022-01-26 07:40:31
Working with XLSX in JavaScript
/* This code comes from Vincent Lab And it has a video version linked here: https://www.youtube.com/watch?v=TDGsVqVzW4A */ // Import dependencies const fs = require("fs"); const XLSX = require("xlsx"); const jsontoxml = requir... Add solution -
Javascript 2022-01-22 22:26:32
read qr code from image nodejs
//Importing jimp module var Jimp = require("jimp"); // Importing filesystem module var fs = require('fs') // Importing qrcode-reader module var qrCode = require('qrcode-reader'); // Read the image and create a buffer // (Here image.png is our ... Add solution