Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxlath/ipfs-add-from-url
A command line executable to add a file to IPFS from a URL instead of a file path
https://github.com/maxlath/ipfs-add-from-url
cli ipfs
Last synced: 3 months ago
JSON representation
A command line executable to add a file to IPFS from a URL instead of a file path
- Host: GitHub
- URL: https://github.com/maxlath/ipfs-add-from-url
- Owner: maxlath
- Created: 2017-01-29T17:00:38.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T14:50:08.000Z (about 1 year ago)
- Last Synced: 2024-09-04T17:54:27.791Z (4 months ago)
- Topics: cli, ipfs
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 26
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ipfs-add-from-url
A command line executable to add a file to [IPFS](http://ipfs.io) from a URL instead of a file path## Dependency
Make sure IPFS is [installed](https://ipfs.io/docs/install/) and the daemon running
```sh
ipfs daemon
```## Install
**Globally**
```sh
npm install -g ipfs-add-from-url
# Use anywhere
ipfs-add-from-url https://inventaire.io/public/icon/120.png
```**In a project**
```sh
npm install ipfs-add-from-url --save
# Use directly from npm scripts
ipfs-add-from-url https://inventaire.io/public/icon/120.png
# Or using the relative path from the command line
./node_modules/.bin/ipfs-add-from-url https://inventaire.io/public/icon/120.png
```## Alternative
As [suggested by ftnd33](https://www.reddit.com/r/ipfs/comments/5quy34/ipfsaddfromurl_a_command_line_executable_to_add_a/dd2xo4s/), you can do pretty much the same with
```sh
wget -q -O - http://url.tld | ipfs add -q
```