• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

elsehow/ipfs-shrinkwrap: Shrinkwrap your npm dependencies with IPFS

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

elsehow/ipfs-shrinkwrap

开源软件地址:

https://github.com/elsehow/ipfs-shrinkwrap

开源编程语言:

JavaScript 97.0%

开源软件介绍:

ipfs-shrinkwrap

ipfs-shrinkwrap

Shrinkwrap your npm dependencies by backing them up to IPFS.

WARNING This is a WIP. Shrinkwrapped dependencies may contain information about your system, e.g. your path or other environment info. Use at your own risk! (thanks @clkao).

install

npm install -g ipfs-shrinkwrap

use

First, run an IPFS daemon.

Shrinkwrapping your dependencies

Make sure you have a node_modules/ directory with all the deps you want to shinkwrap. Then,

ipfs-shrinkwrap

This will add a field "ipfs-shrinkwrap" to your package.json. Re-run this command whenever your dependencies change, and the IPFS hash in package.json will be updated to point at the new dependencies.

Installing dependencies from IPFS

To install your dependencies from ipfs (rather than npm), just

ipfs-shrinkwrap install

This will install all this package's dependencies into node_modules/

ipfs-shrinkwrap lifestyle

Add a badge to your project!

ipfs-shrinkwrap

[![ipfs-shrinkwrap](https://ipfs.pics/ipfs/QmXV8a5eSGeKBCQjFzsMGyYmoYvshyX8SYBb9JCTEsr7gE)](https://github.com/elsehow/ipfs-shrinkwrap)

Keep your shinkwrap up to date, automatically! Add ipfs-shrinkwrap to the prepublish hook in your package.json:

{ 
  scripts: {
    "prepublish": "ipfs-shrinkwrap"
  }
}

license

BSD




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap