Skip to main content

Simple script to make standalone html file.

Works with
It is unknown whether this package works with Bun
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 Browsers
JSR Score
100%
Published
3 weeks ago (0.0.5)

Overview


@tinycode/compil is simple script to make standalone html file.

  • Typescript file can be specified as src in html file.
  • By default script specified as type="module" in output html.
  • You may use precompiled version.

Usage (with deno):


1. Install

deno install --allow-read --allow-write --allow-net --allow-env jsr:@tinycode/compil

2. Use

Now you can use it from command line.

compil index.html

Update

deno install --reload --force --allow-read --allow-write --allow-net --allow-env jsr:@tinycode/compil

Uninstall

deno uninstall compil

Usage (without Deno):


You need to use precompiled version to use it without installing deno.

1. Download

Download appropriate version from here.

2. Use

Windows Click on compil.exe directly or Open command line in downloaded location.

.\compil.exe index.html

Linux

chmod +x ./compil
./compil index.html
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @tinycode/compil

Import symbol

import * as mod from "@tinycode/compil";

Add Package

npx jsr add @tinycode/compil

Import symbol

import * as mod from "@tinycode/compil";

Add Package

yarn dlx jsr add @tinycode/compil

Import symbol

import * as mod from "@tinycode/compil";

Add Package

pnpm dlx jsr add @tinycode/compil

Import symbol

import * as mod from "@tinycode/compil";

Add Package

bunx jsr add @tinycode/compil

Import symbol

import * as mod from "@tinycode/compil";