{"id":31623070,"url":"https://github.com/ido-pluto/esmbytecode","last_synced_at":"2026-02-14T22:02:08.142Z","repository":{"id":257823833,"uuid":"870914261","full_name":"ido-pluto/esmbytecode","owner":"ido-pluto","description":"Compile JS/TS ESM to Bytecode","archived":false,"fork":false,"pushed_at":"2024-10-13T10:33:50.000Z","size":411,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T17:55:13.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ido-pluto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-10T22:42:40.000Z","updated_at":"2025-05-19T06:35:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e00bee9-194f-45f1-bfce-2922f12fb483","html_url":"https://github.com/ido-pluto/esmbytecode","commit_stats":null,"previous_names":["ido-pluto/esmbytecode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ido-pluto/esmbytecode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ido-pluto%2Fesmbytecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ido-pluto%2Fesmbytecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ido-pluto%2Fesmbytecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ido-pluto%2Fesmbytecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ido-pluto","download_url":"https://codeload.github.com/ido-pluto/esmbytecode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ido-pluto%2Fesmbytecode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29457786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T21:29:27.764Z","status":"ssl_error","status_checked_at":"2026-02-14T21:28:11.111Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-06T17:48:13.465Z","updated_at":"2026-02-14T22:02:08.138Z","avatar_url":"https://github.com/ido-pluto.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compile ESM into one bytecode\n\nCompile the ESM project into one bytecode file (including your dependencies).\n\nUseful when you want to hide your source code, or when you want to distribute your project as a few files.\n\n- Compile\n- Compression\n- Bundle\n- Support some .node addons (node-gyp-imports are not supported)\n- TypeScript support\n\n## Compile\n\n```bash\nsage: esmbytecode [options] \u003cinput\u003e \u003coutput\u003e\n\nCompile and bundle your ESM project into a single file\n\nArguments:\n  input          File to start the bundling process from\n  output         Output file\n\nOptions:\n  -c --compress  Compress the output file\n  -V, --version  output the version number\n  -h, --help     display help for command\n```\n\n## Important Notes\n- It will work only with the specific node version it was compiled with (works with node.js only!).\n- It will not work with node-gyp imports.\n- It will not work with dynamic imports that are not statically analyzable.\n\n\n### Compile your project with node API\n\n```js\nimport { compileToJSC } from 'esmbytecode';\n\nawait compileToJSC({\n    input: \"./src/index.ts\",\n    output: \"./dist/lib.jsc\",\n    compress: true\n})\n```\n\n### Import compiled module in your project\n\n```js\nimport { importJSC } from 'esmbytecode';\nconst { default: lib, something } = await importJSC(\"./lib.jsc\");\n```\n\n### Credit\nCredit to [bytenode](https://www.npmjs.com/package/bytenode) for the idea and the implementation of the bytecode usage.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fido-pluto%2Fesmbytecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fido-pluto%2Fesmbytecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fido-pluto%2Fesmbytecode/lists"}