Skip to main content

JsBundle

A binary file for DenoJS.

Bundle files without a hassle, and import them easily.

Features

  • A custom CLI! Learn about it here.
  • An easy to use API.
  • Load bundles as if they were in your workspace.
  • Available on most platforms.
  • Supports most modern ES modules!

FAQ

  • Q: Why not just .zip and unzip?
    There are many reasons, however the main reason is accessibility. With jsbundle, any projects using it, can load and distribute a single file during runtime and experience little to no difference in performance. However while using a zip archive you need to extract and put the contents somewhere, then adjust the code.
  • Q: Why was this made?
    JSBundle was made for a MC:BE server software (Netrex) to allow a clean plugin folder with easy distrubtible plugins with no extra effort. This was inspired by .phar’s and their easy accessibility.
  • Q: Will there be security features embeded into the api when loading a bundle?
    Yes! I plan on adding features to prevent harmful code from executing when loading a bundle! I also plan on support for deno permission flags, prompting the user for permissions.

Installation

Latest Stable deno install -A --unstable -n jsbundle https://deno.land/x/jsbundle/cli.ts

Latest Dev deno install -A --unstable -n jsbundle https://raw.githubusercontent.com/RaptorsMC/jsbundle/master/cli.ts

To Do

  • Add support for runtime unbundling and imports
  • Export modules in runtime with api
  • ZIP?