0.3.6 • Published 2 years ago
linden-poss v0.3.6
flipped-POSS
A private OSS client based on IPFS.
Table of Contents
Install
npm install --save linden-poss
Usage
const createClient = require('linden-poss');
const client = createClient.create({ clientID: "testnet" });
// add data
(async function(){
const res = await client.add.data('Hello world!')
console.log('Added data contents:', res)
})();
// add file
(async function(){
const res = await client.add.file('c:/Users/xieyu/Pictures/94156e5566c82ae7233655505653d674.mp4')
console.log('Added file:', res)
})();
//get data
(async function() {
for await (const chunk of client.get.data("QmebsgayqHpYSzSGZDZLu8dhkfyu1j1EBKseqit1gyvaqc")) {
console.info('geted data:', chunk.toString())
}
})();
// add web site
(async function(){
const res = await client.add.addr('C:/linden/linden-newpc/dist')
console.log('Added addr contents:', res)
})();
Maintainers
Contributing
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © 2021 lindensys.com
0.3.6
2 years ago
0.3.5
2 years ago
0.3.2
2 years ago
0.3.4
2 years ago
0.3.3
2 years ago
0.2.9
2 years ago
0.3.1
2 years ago
0.2.7
3 years ago
0.2.8
3 years ago
0.2.6
3 years ago
0.2.5
3 years ago
0.2.3
3 years ago
0.2.4
3 years ago
0.2.2
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago