New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@fitbit/fdb-debugger

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fitbit/fdb-debugger

Fitbit Developer Bridge debugger library

latest
Source
npmnpm
Version
1.7.3
Version published
Maintainers
3
Created
Source

@fitbit/fdb-debugger

FDB Debugger is a package that can be used to debug Fitbit OS applications.

Interface

class RemoteHost extends EventEmitter

Connect

static async connect(
  hostStream: stream.Duplex // stream for communicating with the host,
  {
    userAgentSuffix = '',
    timeout = 10000,
  } = {},
)

Installing an Fitbit OS Application

async installApp(
  componentBundle: 'app' | 'companion',
  data: Buffer,
  {
    onProgress = (() => {}) as (bytesWritten: number, totalBytes: number) => void,
  } = {},
)

Taking a Screenshot

takeScreenshot(
  format: string,
  onWrite?: (received: number, total?: number) => void,
)

Receiving logs

// Console Messages (log, info, warn, error)
remoteHost.on('consoleMessage', (msg: ConsoleMessage) => any);

// Trace Messages (trace, assert, exception)
remoteHost.on('consoleTrace', (msg: TraceMessage) => any));

ConsoleMessage && Trace Message

Usage

See sdk-cli for an full example of how to use fdb-debugger.

FAQs

Package last updated on 07 Sep 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