项目作者: maxlath

项目描述 :
A command line executable to add a file to IPFS from a URL instead of a file path
高级语言: JavaScript
项目地址: git://github.com/maxlath/ipfs-add-from-url.git
创建时间: 2017-01-29T17:00:38Z
项目社区:https://github.com/maxlath/ipfs-add-from-url

开源协议:

下载


ipfs-add-from-url

A command line executable to add a file to IPFS from a URL instead of a file path

Dependency

Make sure IPFS is installed and the daemon running

  1. ipfs daemon

Install

Globally

  1. npm install -g ipfs-add-from-url
  2. # Use anywhere
  3. ipfs-add-from-url https://inventaire.io/public/icon/120.png

In a project

  1. npm install ipfs-add-from-url --save
  2. # Use directly from npm scripts
  3. ipfs-add-from-url https://inventaire.io/public/icon/120.png
  4. # Or using the relative path from the command line
  5. ./node_modules/.bin/ipfs-add-from-url https://inventaire.io/public/icon/120.png

Alternative

As suggested by ftnd33, you can do pretty much the same with

  1. wget -q -O - http://url.tld | ipfs add -q