ipfs-shrinkwrap

1.0.6 • Public • Published

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!

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 the IPFS hash in package.json will be updated to point at the new dependencies.

Installing dependeices 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

Readme

Keywords

none

Package Sidebar

Install

npm i ipfs-shrinkwrap

Weekly Downloads

2

Version

1.0.6

License

ISC

Last publish

Collaborators

  • elsehow