1.0.11 • Published 4 years ago

@globalfishingwatch/pbf v1.0.11

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

4 years ago

1.0.10

4 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago