1.0.17 • Published 1 year ago

@vandeurenglenn/proto-array v1.0.17

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

native-proton

Makes things smaller

install

npm i @vandeurenglenn/proto-array

usage

const proto = {
  index: 0,
  hash: '0xf1a1'
}

const data = {
  index: 5,
  hash: '0xa1f1'
}

const encoded = encode(proto, data)

const decoded = decode(proto, encoded)

explanation

when encoding keys(propertyNames) are excluded from the encoded data using the provided proto when decoding these keys are set using the provided proto

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.9

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago