What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-15 04:10:16
fs.readdirSync nodejs
The fs.readdirSync() method is used to synchronously read the contents of a given directory. The method returns an array with all the file names or objects in the directory. The options argument can be used to change the format in which the files are ret... Add solution -
Javascript 2021-11-05 03:23:10
Manually Parsing HTML in Node.js
/* This code comes from Vincent Lab And it has a video version linked here: https://www.youtube.com/watch?v=PozG7Sva270 */ // Import dependencies const fs = require("fs"); const cheerio = require("cheerio"); const cheerioTable... Add solution -
Javascript 2021-10-28 00:30:13
express delete image
const router = express.Router(); const path = require("path"); const fs = require('fs'); var multer = require('multer') var upload = multer({ dest: 'uploads/' }) router.get('/:folder/:id', async (req, res) => { let filepath = path.join(_... Add solution -
Javascript 2021-10-25 05:24:11
Manually Parsing PDF in Node.js
/* This code comes from Vincent Lab And it has a video version linked here: https://www.youtube.com/watch?v=b2dLDqmYT4I */ // Import dependencies const fs = require("fs"); const PDFParser = require("pdf2json"); // Get all the... Add solution -
Javascript 2021-10-24 09:00:15
Encryption RSA, JavaScript
//src https://www.sohamkamani.com/nodejs/rsa-encryption/ //e.g. https://gist.github.com/sohamkamani/b14a9053551dbe59c39f83e25c829ea7 //////////////////////////////////////////////////////////////// npm install crypto //////////////////////////////////////... Add solution