Skip to content

lukehedger/buzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

29 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ— Only raw text uploads/downloads supported for now, work on the full API is in progress.

Install

npm install @web3/buzz

Usage

import Buzz from '@web3/buzz'

// instantiate Buzz class with Swarm node provider
const buzz = new Buzz({ provider: 'http://localhost:8500' })

// upload raw text
buzz.upload('buzz')

// download raw text
buzz.download('f070f4f87c0018a4026ff2c14895e9ef525e81c4cf4d768e1bf658e570927a13')

Swarm URI schemes

Swarm version 1.8.0 introduced a set of 'long' URI schemes, which replaced the deprecated 'short' URI schemes. This library uses the long schemes by default but support for the short schemes can be toggled with the schemeType property:

const buzz = new Buzz({ provider: '...', schemeType: 'SHORT' })

Contributing

Setup

npm install

Build

npm run build

Test

npm test

Credits

  • Logo: Bee by alican from the Noun Project

About

๐Ÿ Swarm JavaScript API

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors