ipfake
Fake IPFS for local testing environment.
Install
$ npm install ipfake
Usage
From javascript
const ipfake = ; { const hash = await ipfake; // returns a base58 hash of the absolute file path const absolutePath = await ipfake; // returns an absolute path to the file, given its hash}
From command line
$ ipfake add /rel/or/abs/path/to/file$ ipfake get hashOfAbsoluteFilePath