1.0.17 • Published 11 months ago

@vandeurenglenn/proto-array v1.0.17

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

11 months ago

1.0.16

11 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

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