npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

intermask

v1.0.0

Published

A lightweight option like Electron.js for developing GUI's more easily.

Downloads

6

Readme

Intermask

Intermask is a C++ library that integrates with Node.js through N-API, providing a lightweight interface for managing and manipulating webview windows. Developed under Kuaralabs, Intermask enables efficient creation and management of webview-based applications with functionality for setting titles, sizes, and more.

Features

  • SetTitle: Update the title of the webview window.
  • SetSize: Adjust the dimensions of the webview window.
  • Navigate: Load a specified URL into the webview.
  • Run: Start the webview application.
  • Destroy: Close and clean up the webview window.
  • OnEvent: Register event handlers for custom events.
  • Evaluate: Execute JavaScript code within the webview.
  • GetTitle: Retrieve the current title of the webview.
  • SetBackgroundColor: Change the background color of the webview.
  • SetCustomUserAgent: Set a custom user-agent string for the webview.
  • OnResize: Register a callback to be invoked when the window is resized.
  • GetAdditionalInfo: Get additional information about the webview, such as dimensions.
  • IsDocumentReady: Check if the document loaded in the webview is ready.

Installation

To use Intermask, you will need Node.js and npm installed. You can build the project using the provided binding.gyp file.

Clone the Repository:

npm i intermask

or

yarn add intermask

Usage

Here is a basic example of how to use Intermask in a Node.js application:

const Intermask = require('intermask');

const window = new Intermask();

// Set window title
window.setTitle('My Application');

// Set window size
window.setSize(800, 600);

// Navigate to a URL
window.navigate('https://www.example.com');

// Run the application
window.run();

// Set background color
window.setBackgroundColor('#ffffff');

// Set custom user agent
window.setCustomUserAgent('MyCustomUserAgent/1.0');

// Evaluate JavaScript in the webview
window.evaluate('console.log("Hello from Intermask!");');

// Check if the document is ready
window.isDocumentReady().then(ready => {
    console.log('Document ready:', ready);
});

// Get additional information
window.getAdditionalInfo().then(info => {
    console.log('Window Info:', info);
});

API Documentation

  • SetTitle(title: string): Sets the title of the webview window.
  • SetSize(width: number, height: number): Sets the size of the webview window.
  • Navigate(url: string): Loads a URL into the webview.
  • Run(): Starts the webview application.
  • Destroy(): Closes the webview window.
  • OnEvent(callback: Function): Registers a callback function for custom events.
  • Evaluate(jsCode: string): Executes JavaScript code in the webview.
  • GetTitle(): Retrieves the current title of the webview.
  • SetBackgroundColor(color: string): Sets the background color of the webview.
  • SetCustomUserAgent(userAgent: string): Sets a custom user-agent string for the webview.
  • OnResize(callback: Function): Registers a callback function for window resize events.
  • GetAdditionalInfo(): Retrieves additional information about the webview (e.g., dimensions).
  • IsDocumentReady(): Checks if the document is fully loaded.

Contributing

Contributions are welcome! Please fork the repository, make your changes, and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.

Contact

For any inquiries or support, please reach out to Kuaralabs at [email protected] or with "Intermask" title please at [email protected]