Skip to content

likecoin/arweave-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arweave Uploader

Batch upload your files to Arweave.

Installation

npm install

or

yarn install

Configuration

Name your Arweave key as arweave-key.json and put it in the root directory.

Usage

  1. Store the files to be uploaded in ./upload/ folder.
  2. Prepare the CSV file with filename and ipfsHash fields: The filename field should list the filenames match files in ./upload/ folder.
  3. Launch the program:
    node index.js [list.csv]
    The resulting Arweave hash will be show on both console and ./output-list.csv.

Note that both filename and ipfsHash fields are optinal, but either one should be provided for each row of data:

  1. Program will check and update the ipfsHash if local file is found.
  2. Program will get file from IPFS and store in ./upload/ folder if local file isn't found.
  3. Program will skip uploading the file if file with the same ipfsHash tag can already be found in Arweave.

Note that the mime type of text-based formats like .txt, .csv, .svg, etc is difficult to detect. Program will not add a mime tag for files loaded from IPFS when uploading.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GNU GPLv3