# metalsmith-assets

> Include static assets in your Metalsmith build

Latest version **0.1.0** (published 2014-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install metalsmith-assets
pnpm add metalsmith-assets
yarn add metalsmith-assets
bun add metalsmith-assets
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-11-11 |
| First published | 2014-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Trey Griffith |
| Maintainers | treygriffith |
| Keywords | metalsmith, static, assets |

## Links

- npm: https://www.npmjs.com/package/metalsmith-assets
- Repository: https://github.com/treygriffith/metalsmith-assets
- Issues: https://github.com/treygriffith/metalsmith-assets/issues
- npm.io page: https://npm.io/package/metalsmith-assets

## Dependencies (5)

- [async](https://npm.io/package/async.md) ^0.7.0
- [debug](https://npm.io/package/debug.md) ^0.8.1
- [merge](https://npm.io/package/merge.md) ^1.1.3
- [stat-mode](https://npm.io/package/stat-mode.md) ^0.2.0
- [recursive-readdir](https://npm.io/package/recursive-readdir.md) ^1.0.0

## Recent versions

- 0.1.0 (latest) — 2014-11-11
- 0.0.1 — 2014-04-27

## README

# metalsmith-assets

  Include static assets in your Metalsmith build

## Installation

    $ npm install metalsmith-assets

## CLI Usage

  Install via npm and then add the `metalsmith-assets` key to your `metalsmith.json` plugins with a source and destination directory, like so:

```json
{
  "plugins": {
    "metalsmith-assets": {
      "source": "./assets",
      "destination": "./assets"
    }
  }
}
```

## Javascript Usage

  Pass `options` to the assets plugin and pass it to Metalsmith with the `use` method:

```js
var assets = require('metalsmith-assets');

metalsmith.use(assets({
  source: './assets', // relative to the working directory
  destination: './assets' // relative to the build directory
}));
```

## License

  MIT

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