Skip to content

Instantly share code, notes, and snippets.

@SgtPooki
Last active October 26, 2023 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SgtPooki/54d48f495e32387d38ab21863281d0dc to your computer and use it in GitHub Desktop.
Save SgtPooki/54d48f495e32387d38ab21863281d0dc to your computer and use it in GitHub Desktop.
@sgtpooki/bulk-import-cid -- temporary stop-gap for https://github.com/ipfs/ipfs-desktop/issues/2680
#!/usr/bin/env node
// @ts-check
import { path } from 'kubo'
import {execa} from 'execa';
// get input filename from command line
const filename = process.argv[2];
console.log(`filename: `, filename);
const {stdout} = await execa('echo', ['unicorns']);
console.log(stdout);
{
"name": "@sgtpooki/bulk-import-cid",
"version": "1.0.0",
"description": "temporary stop-gap for https://github.com/ipfs/ipfs-desktop/issues/2680",
"main": "index.js",
"bin": "./index.js",
"type": "module",
"scripts": {
"update-gist": "run-s 'update-gist-file -- index.js -f index.js' 'update-gist-file -- package.json -f package.json'",
"update-gist-file": "gh gist edit 54d48f495e32387d38ab21863281d0dc",
"test": "npx -y https://gist.github.com/SgtPooki/54d48f495e32387d38ab21863281d0dc"
},
"keywords": [
"ipfs",
"ipfs-desktop",
"ipfs-webui",
"CID",
"kubo",
"import"
],
"author": "Russell Dempsey",
"license": "MIT",
"devDependencies": {
"ipfsd-ctl": "^13.0.0",
"npm-run-all": "^4.1.5"
},
"dependencies": {
"execa": "^8.0.1",
"kubo": "^0.23.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment