turtleschell
Version:
A lightweight library for dynamically creating browser windows and embedding iframes with inter-iframe communication.
54 lines (32 loc) • 1.31 kB
Markdown
# TurtleSchell
TurtleSchell is a lightweight framework for creating native-looking Windows applications using HTA (HTML Applications). It provides a simple and easy alternative to Electron.
## Features
- Create native-looking Windows GUIs using `mshta.exe`.
- Dynamically create and manage iframes within the application.
- No external dependencies.
## Installation
Install via npm:
npm install turtleschell
## Usage
1. **Create a `main.js` file in your project:**
const TurtleSchell = require('turtleschell');
const turtleschell = new TurtleSchell();
turtleschell.run();
2. **Run the script:**
node main.js
This will generate and run an HTA application. Use the "Create Iframe" button in the HTA window to add iframes dynamically.
## API
### `run()`
Generates and runs the HTA application.
## Example HTA Content
This is an example of how you might use the iframes you create:
<html> <head> <title>Iframe Content</title> </head> <body> <h1>Hello from Iframe!</h1> <script> window.addEventListener('message', (event) => { console.log('Received message:', event.data); }); </script> </body> </html> ```
Requirements
Windows operating system
Node.js environment
--
log
--
1.0.0 released
1.0.1 added readme
1.0.2 added patches