@andrewtheguy/web3storage
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha28 • Public • Published

upload to web3.storage

 `npx -p @andrewtheguy/web3storage storetoweb3 path_to_upload --name=filename_for_web3.storage (optional) --wrap-directory=yes or no (optional)`

upload existing car file

make a car file

cid="bafybeigdmvh2wgmryq5ovlfu4bd3yiljokhzdep7abpe4c4lrf6rukkx4m" ipfs dag export $cid > path/to/output.car
npx ipfs-car --pack path --output test.car
curl -X POST "https://ipfs.io/api/v0/dag/export?arg=cid" > file.car

upload the car file

npx -p @andrewtheguy/web3storage uploadcartoweb3 path_to_upload.car --name=filename_for_web3.storage  (optional)

dev

npm run watch
# in another window
node dist/storetoweb3.js or any command

publish package

npm run build_and_publish

Readme

Keywords

none

Package Sidebar

Install

npm i @andrewtheguy/web3storage

Weekly Downloads

2

Version

0.0.1-alpha28

License

MIT

Unpacked Size

13.7 kB

Total Files

10

Last publish

Collaborators

  • andrewchen5678