Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 1.22 KB

README.md

File metadata and controls

39 lines (22 loc) · 1.22 KB

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