htmljs

1.1.4 • Public • Published

htmljs

NPM version Build status Test coverage Dependency Status License Downloads Gittip

Convert an HTML file with inlined JS into a JS file with inlined HTML

Converts a file structured like:

<style></style>
<style></style>
<div id=""></div>
<script>someJavascript();</script> 

Into:

var html = '<style></style>\n<style></style>\n<div id=""></div>';
someJavascript();

This is primarily for integrations that require a single JS file instead of an HTML file in an iframe.

/htmljs/

    Package Sidebar

    Install

    npm i htmljs

    Weekly Downloads

    9

    Version

    1.1.4

    License

    MIT

    Last publish

    Collaborators

    • jongleberry