Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d529b6b

Browse files
committedJun 11, 2024·
WIP
1 parent 1e253c3 commit d529b6b

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed
 

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ export() // no wallet passed in, generates an empty Universal Wallet Backup TAR
5757
```
5858
$ tar -vtf wallet-export-2024-01-01.tar
5959
60-
drwxrwxr-x 0 0 4.0K Jun 11 15:38 app/
61-
drwxrwxr-x 0 0 4.0K Jun 11 15:38 keys/
62-
-rw-rw-r-- 0 0 1K Jun 11 15:38 manifest.yaml
60+
drwxr-xr-x 0/0 0 2024-06-11 15:58 app
61+
drwxr-xr-x 0/0 0 2024-06-11 15:58 keys
62+
-rw-r--r-- 0/0 21 2024-06-11 15:58 manifest.yaml
6363
6464
$ cat manifest.yaml
6565
---

‎package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
},
3131
"./package.json": "./package.json"
3232
},
33-
"dependencies": {},
33+
"dependencies": {
34+
"tar-stream": "^3.1.7"
35+
},
3436
"devDependencies": {
3537
"@types/chai": "^4.3.10",
3638
"@types/mocha": "^10.0.4",

‎test.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const tar = require('tar-stream')
2+
const pack = tar.pack() // pack is a stream
3+
4+
pack.entry({ name: 'app', type: 'directory' })
5+
pack.entry({ name: 'keys', type: 'directory' })
6+
pack.entry({ name: 'manifest.yaml' }, '---\nubc-version: 0.1\n')
7+
8+
// pipe the pack stream somewhere
9+
pack.pipe(process.stdout)

0 commit comments

Comments
 (0)
Please sign in to comment.