New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sgtpooki/bulk-import-cid

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sgtpooki/bulk-import-cid

CLI tool for importing multiple CIDs into the MFS(Mutable File System) for Kubo. A useful tool, but mostly temporary stop-gap for https://github.com/ipfs/ipfs-desktop/issues/2680

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by133.33%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 26 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc