0.1.2 • Published 8 years ago

grunt-ipfs v0.1.2

Weekly downloads
2
License
-
Repository
github
Last release
8 years ago

grunt-ipfs

Simple ipfs tasks for grunt

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-ipfs --save-dev 

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-ipfs');

The "ipfsadd" task

Add a file to ipfs

grunt.initConfig({
  ipfsadd: {
    default:{
      options: {
        files:['myFile.txt']
        ,output:'hashes.json'     //optional
      }
    }
  },
});

The "ipfsget" task

Get a file from ipfs and save it to your filesystem

grunt.initConfig({
  ipfsget: {
    default:{
      options: {
        hash: 'QmeHAUST7aL9ZCyqo7JyUfPXQzPmhYV2WSmAUz7Mhk7kmG'
        ,output:'myFile.txt'    //optional, defaults to options.hash
      }
    }
  },
});
0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago