Skip to content

ssmolkin1/ipfake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipfake

Fake IPFS for local testing environment.

Install

$ npm install ipfake

Usage

From javascript

const ipfake = require("ipfake");

async function testIpfake() {
  const hash = await ipfake.add("/rel/or/abs/path/to/file");
  // returns a base58 hash of the absolute file path

  const absolutePath = await ipfake.get(hash);
  // returns an absolute path to the file, given its hash
}

From command line

$ ipfake add /rel/or/abs/path/to/file
$ ipfake get hashOfAbsoluteFilePath

About

Fake IPFS for local testing environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published