{"id":17808280,"url":"https://github.com/loaderb0t/concat-with-sourcemap","last_synced_at":"2025-03-17T15:30:55.765Z","repository":{"id":175270099,"uuid":"653547655","full_name":"LoaderB0T/concat-with-sourcemap","owner":"LoaderB0T","description":"A simple tool to concatenate (or bundle) javascript files with their sourcemaps.","archived":false,"fork":false,"pushed_at":"2023-06-28T21:30:31.000Z","size":52,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-15T13:46:06.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/LoaderB0T.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":"2023-06-14T09:05:15.000Z","updated_at":"2024-05-17T10:39:44.185Z","dependencies_parsed_at":null,"dependency_job_id":"e739ca3d-19dd-45ba-b0a8-abdc6b717671","html_url":"https://github.com/LoaderB0T/concat-with-sourcemap","commit_stats":null,"previous_names":["loaderb0t/concat-with-sourcemap"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoaderB0T%2Fconcat-with-sourcemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoaderB0T%2Fconcat-with-sourcemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoaderB0T%2Fconcat-with-sourcemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoaderB0T%2Fconcat-with-sourcemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LoaderB0T","download_url":"https://codeload.github.com/LoaderB0T/concat-with-sourcemap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221695277,"owners_count":16865185,"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":[],"created_at":"2024-10-27T15:10:09.591Z","updated_at":"2024-10-27T15:10:10.130Z","avatar_url":"https://github.com/LoaderB0T.png","language":"TypeScript","readme":"[![npm](https://img.shields.io/npm/v/concat-with-sourcemap?color=%2300d26a\u0026style=for-the-badge)](https://www.npmjs.com/package/concat-with-sourcemap)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/LoaderB0T/concat-with-sourcemap/build.yml?branch=main\u0026style=for-the-badge)](https://github.com/LoaderB0T/concat-with-sourcemap/actions/workflows/build.yml)\n[![Sonar Quality Gate](https://img.shields.io/sonar/quality_gate/LoaderB0T_concat-with-sourcemap?server=https%3A%2F%2Fsonarcloud.io\u0026style=for-the-badge)](https://sonarcloud.io/summary/new_code?id=LoaderB0T_concat-with-sourcemap)\n[![bundle size](https://img.shields.io/bundlephobia/minzip/concat-with-sourcemap?color=%23FF006F\u0026label=Bundle%20Size\u0026style=for-the-badge)](https://bundlephobia.com/package/concat-with-sourcemap)\n\n# concat-with-sourcemap\n\nA simple tool to concatenate (or bundle) javascript files with their sourcemaps.\n\n## Motivation 💥\n\nOften times, you want to bundle multiple javascript files into one. For example when you want to publish a web component, you might want to bundle all your source files into one file. This is where this tool comes in handy. JavaScript files can be easily concatenated, but their sourcemaps need to be adjusted accordingly. This tool does both for you.\n\n## Features 🔥\n\n✅ Written in TypeScript (Strongly typed)\n\n✅ ESM \u0026 CJS exports\n\n✅ Supports Sourcemap v3\n\n## Built With 🔧\n\n- [TypeScript](https://www.typescriptlang.org/)\n- [source-map](https://www.npmjs.com/package/source-map)\n\n## Installation 📦\n\n```console\npnpm i concat-with-sourcemap\n// or\nyarn add concat-with-sourcemap\n// or\nnpm i concat-with-sourcemap\n```\n\n## Usage Example 🚀\n\n```typescript\nimport { ConcatWithSourcemap } from 'concat-with-sourcemap';\n\nconst concat = new ConcatWithSourcemap('my-bundle.js');\n\n// Add custom content without source map\nawait concat.add(null, '// (c) 2023 awdware');\n\n// Add a file. If the file has a sourcemap (./dist/index.js.map), it will be taken into account\nawait concat.addFile('./dist/index.js');\n\n// Add a directory. All js files in this directory will be added. Sourcemaps will be taken into account\nawait concat.addDirectory('./dist/my-app');\n\n// Save the bundle and the sourcemap to the given directory\n// In this case, the bundle will be saved to ./dist/my-bundle.js and the sourcemap to ./dist/my-bundle.js.map\nawait concat.saveFiles('./dist');\n```\n\n## Contributing 🧑🏻‍💻\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License 🔑\n\nDistributed under the MIT License. See `LICENSE.txt` for more information.\n\n## Contact 📧\n\nJanik Schumacher - [@LoaderB0T](https://twitter.com/LoaderB0T) - [linkedin](https://www.linkedin.com/in/janikschumacher/)\n\nProject Link: [https://github.com/LoaderB0T/awesome-logging](https://github.com/LoaderB0T/awesome-logging)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floaderb0t%2Fconcat-with-sourcemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floaderb0t%2Fconcat-with-sourcemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floaderb0t%2Fconcat-with-sourcemap/lists"}