npm.io
1.0.2 • Published 5 years ago

immutableth

Licence
MIT
Version
1.0.2
Deps
1
Size
7 kB
Vulns
0
Weekly
0

ImmutablETH

This package is built as a joke and is not intended for real-world use! Depend on it for your own risk!

ImmutablETH stores your data in the ETH rinkeby blockchain.

import ImmutablETH from 'ImmutablETH'

const storage = ImmutablETH()

const pony = storage.getItem('myFavoritePony') // Roland
pony.then(console.log)

const order = { item: 'coffee', amount: 1, price: 100, total: 100 }
storage.setItem(`order-${Date.now()}`, order)
  .then(() => console.log('saved!'))
  .catch(() => console.log('error'))
// saved!

Keywords