Skip to content

A tool to create a self unpacking HTML pages with DEFLATE compressed JS

Notifications You must be signed in to change notification settings

subzey/fetchcrunch

Repository files navigation

FetchCrunch

(née deflated-js)

Just like ZPNG and JsExe it wraps the JavaScript into a compressed format that is also an HTML page that somehow gets its own contents, decompresses, and evaluates it.

Unlike ZPNG / JsExe, FetchCrunch is using more modern browser API, CompressionStream. In fact, this CompressionStream API is so modern, that...

◤◢◤◢◤◢◤◢◤◢ WARNING ◤◢◤◢◤◢◤◢◤◢

⚠ The generated HTML only works in Chromium based browsers fo far ⚠

◤◢◤◢◤◢◤◢◤◢ WARNING ◤◢◤◢◤◢◤◢◤◢

Online

Online generator

Node CLI

npx fetchcrunch

Node API

import { FetchCrunchNode } from 'fetchcrunch';

/* ... */

await new FetchCrunchNode().crunch( someJavaScriptCode );

FetchCrunch is created to be configurable. Please import and extend FetchCrunchNode and FetchCrunchBase for your purposes.

Legal stuff

FetchCrunch is using zopfli that is licensed under the Apache License 2.0

About

A tool to create a self unpacking HTML pages with DEFLATE compressed JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published