mirror of
https://github.com/autistic-symposium/backend-and-orchestration-toolkit.git
synced 2025-06-08 06:53:00 -04:00
merge files from the blockchain infra repo (#59)
This commit is contained in:
parent
23f56ef195
commit
2a6449bb85
346 changed files with 29097 additions and 132 deletions
7
code/protocol_demos/sync-async/async.js
Normal file
7
code/protocol_demos/sync-async/async.js
Normal 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");
|
1
code/protocol_demos/sync-async/file.txt
Normal file
1
code/protocol_demos/sync-async/file.txt
Normal file
|
@ -0,0 +1 @@
|
|||
gm anon
|
12
code/protocol_demos/sync-async/package.json
Normal file
12
code/protocol_demos/sync-async/package.json
Normal 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": ""
|
||||
}
|
10
code/protocol_demos/sync-async/sync.js
Normal file
10
code/protocol_demos/sync-async/sync.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const fs = require("fs");
|
||||
|
||||
console.log("first");
|
||||
|
||||
const res = fs.readFileSync("file.txt");
|
||||
|
||||
console.log(res);
|
||||
|
||||
console.log("second");
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue