@dlenroc/roku-developer-server
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@dlenroc/roku-developer-server · NPM Version

Client for host utilities provided via a web page at http://<ip>

Installation

npm install @dlenroc/roku-developer-server

Usage

import { DeveloperServerExecutor, installChannel } from '@dlenroc/roku-developer-server';
import fs from 'node:fs';

const ctx = new DeveloperServerExecutor({
  address: 'http://<ip>',
  username: '<username>',
  password: '<password>',
});

const app = fs.readFileSync('<path_to_channel>');
await installChannel(ctx, { content: app });

📝 Retrieving content from methods returning file paths requires an extra request.

const path = await takeScreenshot(ctx);
const response = await ctx.execute(path);
const content = await response.arrayBuffer();

Method Description
convertToSquashfs Compress sideloaded channel using Squashfs
convertToZip Compress sideloaded channel using Zip
deleteChannel Delete sideloaded channel
deletePackage Delete sideloaded channel package
inspectPackage Inspect channel package
installChannel Sideload a channel from a zip file
packageChannel Package sideloaded channel and return path to it
rekey Rekey device from existing package signed with desired key
saveProfilingData Saves the profiling data and returns the path to it
takeScreenshot Takes a screenshot of the sideloaded channel and returns the path to the image

Readme

Keywords

Package Sidebar

Install

npm i @dlenroc/roku-developer-server

Weekly Downloads

17

Version

2.0.0

License

MIT

Unpacked Size

44.7 kB

Total Files

90

Last publish

Collaborators

  • dlenroc