Last active
October 26, 2023 17:35
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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