{"id":26489089,"url":"https://github.com/arshad-yaseen/bunup","last_synced_at":"2025-03-20T07:19:52.085Z","repository":{"id":282954380,"uuid":"948091668","full_name":"arshad-yaseen/bunup","owner":"arshad-yaseen","description":"Bundling your Javascript or TypeScript libraries has never been simpler or faster—thanks to Bun.","archived":false,"fork":false,"pushed_at":"2025-03-17T20:12:11.000Z","size":974,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T21:25:43.944Z","etag":null,"topics":["build-tool","bun","bundler","typescript"],"latest_commit_sha":null,"homepage":"https://bunup.arshadyaseen.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arshad-yaseen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["arshad-yaseen"]}},"created_at":"2025-03-13T18:27:24.000Z","updated_at":"2025-03-17T20:17:57.000Z","dependencies_parsed_at":"2025-03-17T21:25:49.284Z","dependency_job_id":null,"html_url":"https://github.com/arshad-yaseen/bunup","commit_stats":null,"previous_names":["arshad-yaseen/bunup"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshad-yaseen%2Fbunup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshad-yaseen%2Fbunup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshad-yaseen%2Fbunup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshad-yaseen%2Fbunup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arshad-yaseen","download_url":"https://codeload.github.com/arshad-yaseen/bunup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244111960,"owners_count":20399857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["build-tool","bun","bundler","typescript"],"created_at":"2025-03-20T07:19:51.465Z","updated_at":"2025-03-20T07:19:52.078Z","avatar_url":"https://github.com/arshad-yaseen.png","language":"TypeScript","funding_links":["https://github.com/sponsors/arshad-yaseen"],"categories":[],"sub_categories":[],"readme":"![Og](https://bunup.arshadyaseen.com/og.png)\n\n## Benchmarks\n\nBunup outperforms other popular bundlers by a significant margin:\n\n| Bundler       | Format   | Build Time  | Relative Speed   |\n| ------------- | -------- | ----------- | ---------------- |\n| bunup         | esm, cjs | **3.65ms**  | **16.0x faster** |\n| bunup (+ dts) | esm, cjs | **36.44ms** | **20.4x faster** |\n| tsup          | esm, cjs | 58.36ms     | baseline         |\n| tsup (+ dts)  | esm, cjs | 745.23ms    | baseline         |\n\n_Lower build time is better. Benchmark run on the same code with identical output formats._\n\n## Prerequisites\n\nBunup requires [Bun](https://bun.sh) to be installed on your system. Bun is a fast all-in-one JavaScript runtime that powers Bunup's exceptional performance. Without Bun, Bunup cannot execute as it leverages Bun's bundling capabilities and runtime environment.\n\nTo install Bun, please visit the [official Bun installation page](https://bun.sh/docs/installation).\n\n## Quick Start\n\n### Installation\n\n```bash\nnpm install --save-dev bunup\n```\n\n### Basic Usage\n\nCreate a simple TypeScript file:\n\n```typescript\n// src/index.ts\nexport function greet(name: string): string {\n    return `Hello, ${name}!`;\n}\n```\n\nBundle it with bunup:\n\n```bash\nbunup src/index.ts\n```\n\nThis will create a bundled output in the `dist` directory.\n\n### Using with package.json\n\nAdd a build script to your `package.json`:\n\n```json\n{\n    \"name\": \"my-package\",\n    \"scripts\": {\n        \"build\": \"bunup src/index.ts --format esm,cjs --dts\"\n    }\n}\n```\n\nThen run:\n\n```bash\nnpm run build\n```\n\n### Configuration File\n\nCreate a `bunup.config.ts` file for more control:\n\n```typescript\nimport {defineConfig} from 'bunup';\n\nexport default defineConfig({\n    entry: ['src/index.ts'],\n    outDir: 'dist',\n    format: ['esm', 'cjs'],\n    dts: true,\n    minify: true,\n});\n```\n\n## Documentation\n\nFor complete documentation, visit [the full documentation](https://bunup.arshadyaseen.com/).\n\n## Contributing\n\nFor guidelines on contributing, please read the [contributing guide](https://github.com/arshad-yaseen/bunup/blob/main/CONTRIBUTING.md).\n\nWe welcome contributions from the community to enhance Bunup's capabilities and make it even more powerful. ❤️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshad-yaseen%2Fbunup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farshad-yaseen%2Fbunup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshad-yaseen%2Fbunup/lists"}