(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 eval
uates 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 ◤◢◤◢◤◢◤◢◤◢
npx fetchcrunch
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.
FetchCrunch is using zopfli that is licensed under the Apache License 2.0