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

eframe

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eframe

Emulate an application window within a browser

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
3
50%
Maintainers
0
Weekly downloads
 
Created
Source

eframe

The <e-frame> (Emulation Frame) is a Web Component developed using TypeScript, that allows you to create emulated system application window directly within a browser.

Read this in other languages: English | 简体中文

Installation

<script src="https://cdn.jsdelivr.net/npm/eframe/lib/index.min.js"></script>

You can directly include it in your page via a URI, or use other CDNs such as UNPKG as you prefer.

Usage

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Example</title>
    <style>
      .margin {
        margin: 1rem;
      }
    </style>
  </head>
  <body>
    <e-frame name="App">
      <div class="margin">hello world</div>
    </e-frame>

    <script src="https://cdn.jsdelivr.net/npm/eframe/lib/index.min.js"></script>
  </body>
</html>

After successfully loading the script, use the <e-frame> tag to create a window that mimics a native system application.

window

Attributes

name

  • Type: string
  • Default: null

Set the title of the application window.

<e-frame name="App">
  <!-- ... -->
</e-frame>

theme

  • Type: string
  • Default: "mac"

Define the system style of the title bar, supporting "mac" and "windows".

<e-frame theme="mac">
  <!-- ... -->
</e-frame>

Keywords

application

FAQs

Package last updated on 12 Mar 2025

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