@sgtpooki/bulk-import-cid

1.0.1 • Public • Published

Introduction

A very basic wrapper around Kubo that can bulk import CIDs (with optional names) from a file.

How to use

Run with:

$ npx @sgtpooki/bulk-import-cid <filename> <optionalTimeoutMs>

Structure of your file

The file can be a list of only CIDs, or CIDs and names. The following are all valid formats:

bafkreibm6jg3ux5qumhcn2b3flc3tyu6dmlb4xa7u5bf44yegnrjhc4yeq
QmawceGscqN4o8Y8Fv26UUmB454kn2bnkXV5tEQYc4jBd6 barrel.png
QmbvrHYWXAU1BuxMPNRtfeF4DS2oPmo5hat7ocqAkNPr74 pi equals.png

You can also see example.txt for a simple example of basic formatting that I tested against while developing.

Development

Famous last words: Files organization should be somewhat obvious.

If you pull down the source directly, you can test that things work by running

node index.js example.txt 1000 # times out before starting daemon
node index.js example.txt # no timeout

Publishing

done manually via CLI just to unblock https://github.com/ipfs/ipfs-desktop/issues/2680

/@sgtpooki/bulk-import-cid/

    Package Sidebar

    Install

    npm i @sgtpooki/bulk-import-cid

    Weekly Downloads

    5

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    10.1 kB

    Total Files

    11

    Last publish

    Collaborators

    • sgtpooki