add fundamentals of backend engineering and protocols

This commit is contained in:
steinkirch.eth, phd 2023-07-15 12:36:39 -07:00
parent 941083eb8f
commit 4cf49ba50b
6 changed files with 84 additions and 20 deletions

View file

@ -0,0 +1,7 @@
const fs = require("fs");
console.log("first");
fs.readFile("file.txt", (err,data)=> console.log(data.toString()));
console.log("second");

View file

@ -0,0 +1 @@
gm anon

View file

@ -0,0 +1,12 @@
{
"name": "demo_sync-async",
"version": "1.0.0",
"description": "",
"main": "async.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": ""
}

View file

@ -0,0 +1,10 @@
const fs = require("fs");
console.log("first");
const res = fs.readFileSync("file.txt");
console.log(res);
console.log("second");