New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@globalfishingwatch/pbf

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@globalfishingwatch/pbf

To use custom decoders for gfw api responses:

1.0.8
Version published
Weekly downloads
40
344.44%
Maintainers
2
Weekly downloads
 
Created

@globalfishingwatch/pbf

To use custom decoders for gfw api responses:

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

FAQs

Package last updated on 05 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts