Skip to main content

Built and signed on GitHub Actions

Simple wrapper script around deno_emit.

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
94%
Published
2 days ago (0.2.3)
[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@0.2.3 -n bundl
or
deno install -frg --allow-read --allow-write --allow-env --allow-net jsr:@tinycode/bundl@0.2.3 -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)

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@tinycode/bundl

Import symbol

import * as bundl from "@tinycode/bundl";

---- OR ----

Import directly with a jsr specifier

import * as bundl from "jsr:@tinycode/bundl";

Add Package

npx jsr add @tinycode/bundl

Import symbol

import * as bundl from "@tinycode/bundl";

Add Package

yarn dlx jsr add @tinycode/bundl

Import symbol

import * as bundl from "@tinycode/bundl";

Add Package

pnpm dlx jsr add @tinycode/bundl

Import symbol

import * as bundl from "@tinycode/bundl";

Add Package

bunx jsr add @tinycode/bundl

Import symbol

import * as bundl from "@tinycode/bundl";