/bee-dir

Upload your directories to Bee with TypeScript!

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Bee Dir

CircleCI standard-readme compliant js-standard-style Managed by tAsEgir

Upload your directories to Bee with TypeScript!

Table of Contents

Usage

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.

Contribute

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!

Tests

In order to run tests first startup Bee node with ./start_bee_node.sh script (Docker required). Then run tests with npm test.

License

GNU GPL-3