1.0.17 • Published 9 months ago

@vandeurenglenn/proto-array v1.0.17

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months 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

9 months ago

1.0.16

9 months ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.9

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago