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

@cisl/io-display

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cisl/io-display

Module for `@cisl/io` that wraps the interface for the display-worker to make it easier to work with.


Version published
Weekly downloads
1
decreased by-88.89%
Maintainers
2
Weekly downloads
 
Created

@cisl/io-display

Module for @cisl/io that wraps the interface for the display-worker to make it easier to work with.

Installation

npm install @cisl/io-display

Usage

import cislio, { registerPlugins } from '@cisl/io';
import '@cisl/io-display';

const io = cislio();

(async function (): Promise<void> {
  const { displayContext } = await io.display.openDisplayWorker('contextOne', {
    main: {
      displayName: 'main',
      contentGrid: {
        row: 3,
        col: 3,
      },
    },
  });

  const promises = [];

  await io.display.displayUrl('main', 'http://www.google.com', {
    widthFactor: 1,
    heightFactor: 1,
  });

  await new Promise((resolve) => {
    setTimeout(resolve, 8000);
  });
  await displayContext.close();
})()
  .then(() => {
    console.log('done');
    process.exit();
  })
  .catch((err) => {
    console.error(err);
  });

You can see additional example usages of this module in the display-worker/examples folder.

FAQs

Package last updated on 14 Dec 2021

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