{"id":14155922,"url":"https://github.com/sprout2000/esbuild-copy-plugin","last_synced_at":"2025-10-11T17:23:16.279Z","repository":{"id":56869998,"uuid":"526771215","full_name":"sprout2000/esbuild-copy-plugin","owner":"sprout2000","description":"An esbuild plugin to efficiently copy static files from a source directory to a destination directory.","archived":false,"fork":false,"pushed_at":"2025-07-09T23:11:12.000Z","size":1326,"stargazers_count":16,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T22:15:54.338Z","etag":null,"topics":["copy-files","esbuild","esbuild-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@sprout2000/esbuild-copy-plugin","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/sprout2000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null},"funding":{"github":"sprout2000","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-08-19T22:50:42.000Z","updated_at":"2025-10-06T09:15:29.000Z","dependencies_parsed_at":"2024-04-16T09:25:16.403Z","dependency_job_id":"716fcc79-edc8-471b-9f98-aeb86c8f5635","html_url":"https://github.com/sprout2000/esbuild-copy-plugin","commit_stats":{"total_commits":70,"total_committers":3,"mean_commits":"23.333333333333332","dds":0.02857142857142858,"last_synced_commit":"bbf052826c01d479b10dcc012f4c0318843539c1"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/sprout2000/esbuild-copy-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprout2000%2Fesbuild-copy-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprout2000%2Fesbuild-copy-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprout2000%2Fesbuild-copy-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprout2000%2Fesbuild-copy-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sprout2000","download_url":"https://codeload.github.com/sprout2000/esbuild-copy-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sprout2000%2Fesbuild-copy-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008116,"owners_count":26084396,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["copy-files","esbuild","esbuild-plugin"],"created_at":"2024-08-17T08:05:05.742Z","updated_at":"2025-10-11T17:23:16.263Z","avatar_url":"https://github.com/sprout2000.png","language":"TypeScript","funding_links":["https://github.com/sponsors/sprout2000"],"categories":["others"],"sub_categories":[],"readme":"# @sprout2000/esbuild-copy-plugin\n\n![jest](./coverage/badge.svg)\n![GitHub top language](https://img.shields.io/github/languages/top/sprout2000/esbuild-copy-plugin)\n![npm](https://img.shields.io/npm/dt/@sprout2000/esbuild-copy-plugin)\n\nAn [esbuild](https://esbuild.github.io/) plugin to efficiently copy static files from a source directory to a destination directory.\n\n_\\* This plugin is a typed and fully tested version of [@nickjj](https://github.com/nickjj)'s [esbuild-copy-static-files](https://github.com/nickjj/esbuild-copy-static-files)._\n\n## Installation\n\n```sh\nnpm install --save-dev @sprout2000/esbuild-copy-plugin\n```\n\n_You will need to have [Node.js](https://nodejs.org/) `\u003e=16.7` installed._\n\n## Usage\n\n```js\nimport { build } from \"esbuild\";\nimport { copyPlugin } from \"@sprout2000/esbuild-copy-plugin\";\n\nbuild({\n  plugins: [\n    copyPlugin({\n      src: \"./assets/icon.png\",\n      dest: \"./dist/logo.png\",\n    }),\n  ],\n});\n```\n\n## API\n\n```typescript\ninterface CopyPluginOptions extends fs.CopySyncOptions {\n  src?: string;\n  dest?: string;\n}\n```\n\n| option                                | default     |\n| :------------------------------------ | :---------- |\n| `src?`: string                        | `\"assets\"`  |\n| `dest?`: string                       | `\"dist\"`    |\n| `dereference?`: boolean               | `false`     |\n| `errorOnExist?`: boolean              | `false`     |\n| `filter?`: (`src`, `dest`) =\u003e boolean | `undefined` |\n| `force?`: boolean                     | `false`     |\n| `preserveTimestamps?`: boolean        | `false`     |\n| `recursive?`: boolean                 | `true`      |\n| `verbatimSymlinks?`: boolean          | `false`     |\n\n_See [fs.CopySyncOptions](https://nodejs.org/dist/latest-v18.x/docs/api/fs.html) in Node.js LTS for more details._\n\n## Unit test\n\n```sh\n# clone this repo, and install devDependencies...\ngit clone https://github.com/sprout2000/esbuild-copy-plugin.git\ncd esbuild-copy-plugin\nnpm install\n\n# run the test\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsprout2000%2Fesbuild-copy-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsprout2000%2Fesbuild-copy-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsprout2000%2Fesbuild-copy-plugin/lists"}