3.0.1 • Published 12 months ago

index-encoder v3.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
12 months ago

index-encoder

Encode multiple values into sorted keys

npm install index-encoder

Usage

const IndexEncoder = require('index-encoder')

const idx = new IndexEncoder([
  IndexEncoder.STRING,
  IndexEncoder.UINT
])

const buf = idx.encode(['foo', 42])
console.log(idx.decode(buf)) // ['foo', 42]

License

MIT

3.0.1

12 months ago

3.0.0

12 months ago

2.0.0

1 year ago

1.0.0

1 year ago