0.0.8 • Published 3 years ago

1filecompiler v0.0.8

Weekly downloads
5
License
GPL-3.0-only
Repository
-
Last release
3 years ago

1 File Compiler

What is this?

This is a useful tool for compiling html, css and javascript into one html file. I could not find something like this so I made it myself.

Why?

I created this because I wanted a user to be able to open one html file and view a website without loading content from the internet or other local files.

CAUTION

This probably has a lot of bugs so be aware if your gonna use this in production tip: don't

It also does not manage errors well at all

Installation

npm i -g 1filecompiler for CLI

npm i --save-dev 1filecompiler for API

CLI

The CLI is easy

npx 1fc input.html output.html

API

const { compile } = require("1fc"); // Import module

let compiledHTML = compile("./input.html"); // Read file and then compile it
console.log(compiledHTML); // Log the compiled output to console
0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

4 years ago