aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpukkamustard <pukkamustard@posteo.net>2021-04-08 09:47:45 +0200
committerpukkamustard <pukkamustard@posteo.net>2021-04-08 09:47:45 +0200
commit942c29e1adc9da0c35b67aa0d50e733c5be9133b (patch)
tree1a02515f84d8f505e5febdf30e5a3cd87ed5bc5a
parent6b0262d1b946cb8c703e31f7fe2c2341188cf143 (diff)
remove index.js (used as scratch pad)
-rw-r--r--index.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/index.js b/index.js
deleted file mode 100644
index 33bce52..0000000
--- a/index.js
+++ /dev/null
@@ -1,16 +0,0 @@
-const eris2 = require('./src/eris2.js')
-const base32 = require('./src/base32.js')
-
-async function main () {
- const encoded = await eris2.encodeToMap('Hello world!', 1024)
-
- const getBlock = (reference) => encoded.blocks.get(base32.encode(reference))
-
- for await (const value of eris2.decode(encoded.urn, getBlock)) {
- console.log(value)
- }
-
- console.log(await eris2.decodeToString(encoded.urn, getBlock))
-}
-
-main()