# handlebars-what-partial

> An npm package to traverse through handlebars templates to determine what partials are being included and where. It will output a json file with the results

Latest version **1.1.1** (published 2016-08-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install handlebars-what-partial
pnpm add handlebars-what-partial
yarn add handlebars-what-partial
bun add handlebars-what-partial
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2016-08-12 |
| First published | 2016-08-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matthew Claffey - Code Computerlove |
| Maintainers | codecomuterlove |
| Keywords | handlebars |

## Links

- npm: https://www.npmjs.com/package/handlebars-what-partial
- Repository: https://github.com/code-computerlove/handlebars-what-partial
- Issues: https://github.com/code-computerlove/handlebars-what-partial/issues
- npm.io page: https://npm.io/package/handlebars-what-partial

## Dependencies (6)

- [vinyl](https://npm.io/package/vinyl.md) ^1.1.1
- [bluebird](https://npm.io/package/bluebird.md) ^3.4.1
- [fs-extra](https://npm.io/package/fs-extra.md) ^0.30.0
- [through2](https://npm.io/package/through2.md) ^2.0.1
- [plugin-error](https://npm.io/package/plugin-error.md) ^0.1.2
- [object-assign](https://npm.io/package/object-assign.md) ^4.1.0

## Recent versions

- 1.1.1 (latest) — 2016-08-12
- 1.0.1 — 2016-08-12
- 1.0.0 — 2016-08-12

## README

# Handlebars What Partial

> Create a json structured file that shows all handlebars partials contained in any given handlebars template file.

## Installation

- Run `npm install handlebars-what-partial --save-dev`

## Basic Setup (using gulp)
```
var gulp = require('gulp');
var handlebarsWhatPartial = require('handlebars-what-partial');

gulp.task('hanldebars-list', function(){
	return gulp.src('path/to/views')
	       .pipe(handlebarsWhatPartial())
	       .pipe(gulp.dest('path/to/output'));
});
```

## Options

- `filename` - Names the output file.

### Example
```
var gulp = require('gulp');
var handlebarsWhatPartial = require('handlebars-what-partial');

var options = {
	filename: 'myFileName'
};

gulp.task('hanldebars-list', function(){
	return gulp.src('path/to/views')
	       .pipe(handlebarsWhatPartial(options))
	       .pipe(gulp.dest('path/to/output'));
});
```

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