npm

fetchcrunch

1.0.0-beta.7 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i fetchcrunch

Weekly Downloads

1

Version

1.0.0-beta.7

License

MIT

Unpacked Size

122 kB

Total Files

19

Last publish

Collaborators

  • subzey