0.3.6 • Published 3 years ago

linden-poss v0.3.6

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

flipped-POSS

standard-readme compliant TODO: Put more badges here.

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

@do-nothing

Contributing

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2021 lindensys.com

0.3.6

3 years ago

0.3.5

3 years ago

0.3.2

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.2.9

3 years ago

0.3.1

3 years ago

0.2.7

4 years ago

0.2.8

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.3

4 years ago

0.2.4

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago