1.0.9 • Published 2 years ago

require-from-cid v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
2 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

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago