@leofcoin/codec-format-interface
TypeScript icon, indicating that this package has built-in type declarations

1.7.11 • Public • Published

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()
  ]
...

Readme

Keywords

none

Package Sidebar

Install

npm i @leofcoin/codec-format-interface

Weekly Downloads

0

Version

1.7.11

License

MIT

Unpacked Size

49.2 kB

Total Files

17

Last publish

Collaborators

  • vandeurenglenn