@xilinota/htmlpack
TypeScript icon, indicating that this package has built-in type declarations

2.13.1 • Public • Published

HTMLPACK

Pack an HTML and all its JavaScript, CSS, image, fonts, and external files into a single HTML file. JavaScript and CSS is embedded in STYLE and SCRIPT tags, while all other files and images are converted to dataUri format and embedded in the document.

Usage

import htmlpack from '@xilinota/htmlpack';
htmlpack('/path/to/input.html', '/path/to/output.html');

Notes

  • The script works in synchronous way so it will block the calling process while running.
  • No security check on what's included.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @xilinota/htmlpack

Weekly Downloads

0

Version

2.13.1

License

MIT

Unpacked Size

24.6 kB

Total Files

6

Last publish

Collaborators

  • xilinota