Upload your directories to Bee with TypeScript!
As this package is not released to NPM, you have to clone the repo locally:
$ git clone https://github.com/AuHau/bee-dir.git
$ cd bee-dir
$ npm i
$ ./start_bee_node.sh &
$ npm start -- /path/to/directory
Help page that you get when run npm start -- --help
:
Uploads specified directory to Swarm and after that verify the files were correctly uploaded.
USAGE
$ bee-dir DIR
ARGUMENTS
DIR directory to upload
OPTIONS
-b, --bee=bee [default: http://localhost:8080] URL pointing to running instance of Bee [env: BEE_URL]
-r, --recursive Determines if nested directories should be uploaded as well
-v, --verify After finishing uploading the files, all files are re-downloaded and verified
DESCRIPTION
Verification is performed using comparing the sizes of the files.
There are some ways you can make this module better:
- Consult our open issues and take on one of them
- Help our tests reach 100% coverage!
In order to run tests first startup Bee node with ./start_bee_node.sh
script (Docker required).
Then run tests with npm test
.