What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-14 21:12:04
how to write and read a text file in jdiscord.js
npm install fs --save -g //You can read from the file like this: // File system stuff. var fs = require("fs"); // Get the text file and load it into a variable. var file = fs.readFileSync("path/to/my/text/file.txt", "utf8");... Add solution -
Javascript 2021-09-11 18:31:02
node js send javascript
const fs = require("fs"); const hostname = "127.0.0.1"; const port = 3000; // use createReadStream instead to save memory const index = fs.readFileSync("index.html"); const java = fs.readFileSync("javascript.js"); ... 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
Best helpers
Shaples
+5
Tranquilled
+5
Kozuch
+5
Big D Rock
+5
The 313137
+5
Toby Stewart
+5
Moez
+5
Stelle
+5
Kathrin
+5
Moradnejad
+5
Tony_Henrich
+5