[EXPERIMENTAL]
- Always use with version number

JSR Badge

@tinycode/bundl is a lightweight wrapper around deno_emit. It is useful for bundling local files, npm packages, or jsr packages. Any other modules eg. deno/x can be bundled via url. It is also useful for writing types of existing javascript and typescript files.

For npm packages, @tinycode/bundl fetches dependencies via esm.sh

Bundling is often necessary for debugging, script minification, or creating offline applications. For online applications or cutting-edge projects, it is recommended to use URLs directly from jsr, npm or esm.sh

Install/Update

deno install -frgA jsr:@tinycode/bundl -n bundl
or
deno install -frg --allow-read --allow-write --allow-env --allow-net jsr:@tinycode/bundl -n bundl

Usage

Local file
bundl script.ts -o output.js
Url
bundl url -o output.js
JSR package
bundl -j @scope/package -o packageName.js
NPM package
bundl -n packageName -o packageName.mjs

CLI Options

-h show this help message

-o output file name

-j Retrieve package from jsr.io

-n Retrieve npm package via esm.sh

-t Retrieve types of npm packages (-n also needed)

License

This project is licensed under the MIT License.

Dependencies

Some dependencies may be licensed under different terms. (see LICENSES for more details)