1.0.11 • Published 3 years ago

@globalfishingwatch/pbf v1.0.11

Weekly downloads
25
License
MIT
Repository
-
Last release
3 years ago

@globalfishingwatch/pbf

To use custom decoders for gfw api responses:

  1. Import the decoder function
import { vessels } from '@globalfishingwatch/pbf/decoders/vessels'
  1. Use it in the response
promise
  .then((r) => r.arrayBuffer())
  .then((buffer) => {
    const track = vessels.Track.decode(new Uint8Array(buffer))
    return track.data
  })
1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago