@leofcoin/codec-format-interface
v1.7.13
Published
```js import FormatInterface from '@leofcoin/codec-format-interface'
Downloads
23
Readme
codec-format-interface
usage
import FormatInterface from '@leofcoin/codec-format-interface'
class MyFormat extends FormatInterface {
get proto() {
return {
key: 'value',
hello: 'world'
}
}
constructor(data) {
super(data, { name: 'my-format', hashFormat = 'bs32' })
}
}
build for browser
rollup
import resolve from '@rollup/plugin-node-resolve'
...
plugins: [
resolve()
]
...