Skip to main content
Deno 2 is finally here 🎉️
Learn more

Frogasaurus

Frogasaurus is a script for bundling a javascript library into a single file.
I made it because I wanted an easy way to make a library that can be used in any of these ways:

  • Imported with the import keyword.
  • Embedded with a script tag.
  • Run in a terminal with deno run.

How does it work?

Write your code inside the source folder.
Then use the frogasaurus command in the root folder.

Your bundled project will appear!
Use the -import.js file when importing the project.
Use the -embed.js file when embedding the project.

If you export a function called main
An extra -standalone.js file will appear, that you can run in the command line with deno.

How do I install it?

Run this command using deno:

deno install --allow-write=. --allow-read=. frogasaurus.js

What? I don’t understand?

Check out the Hello World Guide (or other guides).

Anything else I should know?

Yes! There are many limitations! But it’s all a secret (for now).