# dusting

> cli and node module to compile dust.js templates

Latest version **1.0.0** (published 2014-10-08) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install dusting
pnpm add dusting
yarn add dusting
bun add dusting
```

Provides the command `dusting`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-10-08 |
| First published | 2013-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Matt Hadley |
| Maintainers | diff_sky |
| Keywords | dust, dust.js, linkedin, compile, precompile |

## Links

- npm: https://www.npmjs.com/package/dusting
- Repository: https://github.com/diffsky/dusting
- Issues: https://github.com/diffsky/dusting/issues
- npm.io page: https://npm.io/package/dusting

## Dependencies (4)

- [glob](https://npm.io/package/glob.md) ^4.0.6
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.0
- [minimist](https://npm.io/package/minimist.md) ^1.1.0
- [dustjs-linkedin](https://npm.io/package/dustjs-linkedin.md) 1.2.1

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-10-08
- 0.1.2 — 2014-10-08
- 0.0.10 — 2013-04-01
- 0.0.9 — 2013-04-01
- 0.0.7 — 2013-02-21
- 0.0.6 — 2013-02-20
- 0.0.5 — 2013-02-15
- 0.0.4 — 2013-02-14
- 0.0.2 — 2013-02-14
- 0.0.1 — 2013-02-14

## README

# dusting [![](https://travis-ci.org/diffsky/dusting.svg)](https://travis-ci.org/diffsky/dusting)

Recursively compiles a directory of dust.js templates into grouped `.js` files.

Dust templates in the root directory are compiled into a `templates.js` file.
Templates in sub directories of the root are compiled into a file matching the full
directory name (with dots replacing path separator). So all templates at `sub/dir/*.dust`
would be compiled into `sub.dir.js` file.

## installation

For use in other node projects:

    npm install dusting

As a command line tool:

    npm install dusting -g

## usage

designed to be used synchronously:

    var dusting = require('dusting');
    dusting({
      source: <input>,
      output: <output>,
      // optionally rename the root `templates.js` file
      rootOutput: 'foo.js'
    });

command line:

    dusting <input> [output]

 - `<source>` path to a directory containing dust.js templates (`*.dust`).
 - `[output]` directory to write output to, defaults to cwd

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