What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-09 10:36:02
export mongo to csv node
const json2csv = require('json2csv').parse; //For unique file name const dateTime = new Date().toISOString().slice(-24).replace(/\D/g, '').slice(0, 14); const filePath = path.join(__dirname, "../../../", "public", "exports&quo... Add solution -
Python 2021-09-05 17:20:02
split python file into different data types
##Write a Python program to create a file of elements of any data type (mixed data type, i.e. some elements maybe of type int, some elements of type float and some elements of type string). Split this file into three file containing elements of same dat... Add solution -
Javascript 2021-09-03 21:31:01
Working with YAML in Node.js
/* This code comes from Vincent Lab And it has a video version linked here: https://www.youtube.com/watch?v=loX_JpMnodA */ // Import dependencies const fs = require("fs"); const YAML = require("js-yaml"); // Get YAML or throw... Add solution -
Javascript 2021-08-29 09:42:01
Writing files in Node.js
const fs = require('fs'); fs.writeFile("/tmp/test", "Hey there!", function(err) { if(err) { return console.log(err); } console.log("The file was saved!"); }); // Or fs.writeFileSync('/tmp/test-sync', 'H... Add solution
Best helpers
Ranking is empty