# esbuild-plugin-just-copy

> ESBuild plugin for assets copy.

Latest version **0.1.2** (published 2022-11-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install esbuild-plugin-just-copy
pnpm add esbuild-plugin-just-copy
yarn add esbuild-plugin-just-copy
bun add esbuild-plugin-just-copy
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2022-11-18 |
| First published | 2022-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Noriyo Akita |
| Maintainers | noriyotcp |
| Keywords | esbuild, ESBuild, copy, plugin |

## Links

- npm: https://www.npmjs.com/package/esbuild-plugin-just-copy
- Homepage: https://github.com/noriyotcp/esbuild-plugin-just-copy
- Issues: https://github.com/noriyotcp/esbuild-plugin-just-copy/issues
- npm.io page: https://npm.io/package/esbuild-plugin-just-copy

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2022-11-18
- 0.1.1 — 2022-11-12

## README

# esbuild-plugin-just-copy
ESBuild plugin for assets copy.

```sh
npm install esbuild-plugin-just-copy
yarn add esbuild-plugin-just-copy
```

```js
import { build } from 'esbuild';
import { copy } from 'esbuild-plugin-just-copy';

(async () => {
  const res = await build({
    entryPoints: ['./src/main.ts'],
    bundle: true,
    outfile: './dist/main.js',
    plugins: [
      copy({
        // The path will be relative to where you are running this script
        assets: [
          {
            from: ['./assets/**/*'],
            to: ['./tmp-assets'],
          },
          {
            from: ['./assets/test.js'],
            to: ['./tmp-assets/test.js'],
          }
        ],
      }),
    ],
  });
})();
```

---
_Source: https://npm.io/package/esbuild-plugin-just-copy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
