1.0.9 • Published 4 years ago

require-from-cid v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

require-from-cid

Load module from Cid in Node.

Install

$ npm install require-from-cid

Conffig file .env

IPFS_HOST="" 
IPFS_HOST="http://127.0.0.1:5001"

Usage

var requireFromCid = require('require-from-cid');
const hello = requireFromCid('QmXvbzLy1GtZLXrrKvGh2D5doXj8iS7AobysZwVjmF7yqd');
console.log(hello);

var client = require('require-from-cid/ipfs');
const { cid } = await client.add('Hello world!');

License

MIT © Do Vui

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago