| Crates.io | pek |
| lib.rs | pek |
| version | 0.0.1 |
| created_at | 2025-08-10 07:38:41.012403+00 |
| updated_at | 2025-08-10 07:38:41.012403+00 |
| description | tiny javascript compiler |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1788650 |
| size | 182,307 |
Yeilding 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);