What do you want to save?
Add Code snippet
New code examples
-
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