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

@pixui-dev/htmlpage2pixui

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixui-dev/htmlpage2pixui

HTML to Markdown to HTML converter written in TypeScript

latest
npmnpm
Version
0.0.3
Version published
Maintainers
3
Created
Source

@pixui-dev/htmlpage2pixui

HTML to PixUI converter written in TypeScript.

Installation

npm install @pixui-dev/htmlpage2pixui

Usage

JavaScript

const { convertHtml, ImageUploader } = require('@pixui-dev/htmlpage2pixui');

// Convert HTML
const result = await convertHtml('<div>Hello World</div>');
console.log(result.html);

// Upload Image
const uploadResult = await ImageUploader('path/to/image.jpg');
console.log(uploadResult);

TypeScript

import { convertHtml, ImageUploader } from '@pixui-dev/htmlpage2pixui';

// Convert HTML
const result = await convertHtml('<div>Hello World</div>');
console.log(result.html);

// Upload Image
const uploadResult = await ImageUploader('path/to/image.jpg');
console.log(uploadResult);

API

convertHtml(htmlContent, options?)

Converts HTML content to PixUI format.

  • htmlContent: string - The HTML content to convert
  • options: ConversionOptions (optional) - Conversion options

Returns: Promise

ImageUploader(imagePath, progressCallback?, options?)

Uploads an image and returns the result.

  • imagePath: string - Path to the image file
  • progressCallback: function (optional) - Progress callback function
  • options: object (optional) - Upload options

Returns: Promise

License

ISC

FAQs

Package last updated on 18 Jun 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