html-knit
v0.0.1
Published
A package to knit together HTML, CSS and JavaScript files into a single file
Readme
HTML Knit
Knit together multiple HTML, CSS and JavaScript files into a single HTML file.
Usage
Installation
npm i html-knitor
yarn add html-knitUsage
const html_knit = require('html-knit');
html_knit.knit("output.html", "input.html", "styles1.css", "script1.js" ...);Arguments
- The first argument specifies the location to output the knitted HTML file. It must be in the
.htmlextension. If this file already exists, it will be overwritten. - Any number of files can be provided as arguments following that. Upto 1 HTML file can be provided as as the input argument but is not mandatory. Any number of
.cssor.jsfiles can be provided. No other file extensions are supported as of now.
Disclaimer : This module is still in it's beta phase. Please use at your own risk. Feel free to open an issue to report bugs or feature requests.
