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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.4
    3
    • latest

Version History

Package Sidebar

Install

npm i htmljs

Weekly Downloads

7

Version

1.1.4

License

MIT

Last publish

Collaborators

  • jongleberry