pek

Crates.iopek
lib.rspek
version0.0.1
created_at2025-08-10 07:38:41.012403+00
updated_at2025-08-10 07:38:41.012403+00
descriptiontiny javascript compiler
homepage
repository
max_upload_size
id1788650
size182,307
伊撒尔 (yisar)

documentation

README

yjc

Yeilding Javascript compiler

  • Simplest bundler algorithm
  • Smallest JavaScript compiler

input

import { hello } from './hello.js'

function world() {
  return 'World'
}

console.log(hello)
console.log(world())

output

(function (global) {
const P$hello_js$hello = 'hello';

const P$index_js$world = () => console.log("world");

console.log(P$hello_js$hello);
console.log(P$index_js$world());
})(typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : this);
Commit count: 0

cargo fmt