<commit_before># handlebars-dir-render
<!-- badge -->
[![npm license](https://img.shields.io/npm/l/handlebars-dir-render.svg)](https://www.npmjs.com/package/handlebars-dir-render)
[![travis status](https://img.shields.io/travis/sramam/handlebars-dir-render.svg)](https://travis-ci.org/sramam/handlebars-dir-render)
[![Build status](https://ci.appveyor.com/api/projects/status/90am2usst4qeutgi?svg=true)](https://ci.appveyor.com/project/sramam/handlebars-dir-render)
[![Coverage Status](https://coveralls.io/repos/github/sramam/handlebars-dir-render/badge.svg?branch=master)](https://coveralls.io/github/sramam/handlebars-dir-render?branch=master)
[![David](https://david-dm.org/sramam/handlebars-dir-render/status.svg)](https://david-dm.org/sramam/handlebars-dir-render)
[![David](https://david-dm.org/sramam/handlebars-dir-render/dev-status.svg)](https://david-dm.org/sramam/handlebars-dir-render?type=dev)
<br/>
[![NPM](https://nodei.co/npm/handlebars-dir-render.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/handlebars-dir-render/)
<!-- endbadge -->

Given a context and a source directory of handlebars templates, renders all files from source directory to destination directory.

## Installation

```bash
npm install handlebars-dir-render
```

## Usage

```javascript
import { render } from 'handlebars-dir-render';
render(srcDir, dstDir, context);
```
or

```javascript
const render = require('handlebars-dir-render').render;
render(srcDir, dstDir, context);

```

## API
<commit_msg>README touchups<commit_after># handlebars-dir-render
<!-- badge -->
[![npm license](https://img.shields.io/npm/l/handlebars-dir-render.svg)](https://www.npmjs.com/package/handlebars-dir-render)
[![travis status](https://img.shields.io/travis/sramam/handlebars-dir-render.svg)](https://travis-ci.org/sramam/handlebars-dir-render)
[![Build status](https://ci.appveyor.com/api/projects/status/90am2usst4qeutgi?svg=true)](https://ci.appveyor.com/project/sramam/handlebars-dir-render)
[![Coverage Status](https://coveralls.io/repos/github/sramam/handlebars-dir-render/badge.svg?branch=master)](https://coveralls.io/github/sramam/handlebars-dir-render?branch=master)
[![David](https://david-dm.org/sramam/handlebars-dir-render/status.svg)](https://david-dm.org/sramam/handlebars-dir-render)
[![David](https://david-dm.org/sramam/handlebars-dir-render/dev-status.svg)](https://david-dm.org/sramam/handlebars-dir-render?type=dev)
<br/>
[![NPM](https://nodei.co/npm/handlebars-dir-render.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/handlebars-dir-render/)
<!-- endbadge -->

Given a context and a source directory of handlebars templates, recursively renders all files from source directory to destination directory.
Strips and `*.hbs` & `*.handlebars` extensions from source directory.

## Installation

```bash
npm install handlebars-dir-render
```

## Usage

```javascript
import { render } from 'handlebars-dir-render';
render(srcDir, dstDir, context);
```
or

```javascript
const render = require('handlebars-dir-render').render;
render(srcDir, dstDir, context);

```

## API

{'fraction_non_alphanumeric': 0.1913937058445729, 'fraction_numerical': 0.002569043031470777, 'mean_word_length': 5.75704989154013, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 28, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2689638', 'n_tokens_mistral': 1139, 'n_tokens_neox': 1082, 'n_words': 126}