# @types/handlebars-helpers

> TypeScript definitions for handlebars-helpers

Latest version **0.5.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/handlebars-helpers
pnpm add @types/handlebars-helpers
yarn add @types/handlebars-helpers
bun add @types/handlebars-helpers
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.5.6 |
| Published | 2023-11-07 |
| First published | 2018-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/handlebars-helpers
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/handlebars-helpers
- npm.io page: https://npm.io/package/@types/handlebars-helpers

## Dependencies (1)

- [handlebars](https://npm.io/package/handlebars.md) >=4.1.0

## Recent versions

- 0.5.6 (latest) — 2023-11-07
- 0.5.3 (ts3.6) — 2021-07-08
- 0.5.2 (ts2.3) — 2019-02-26
- 0.5.5 — 2023-10-18
- 0.5.4 — 2023-09-16
- 0.5.1 — 2019-02-13
- 0.5.0 — 2018-11-19

## README

# Installation
> `npm install --save @types/handlebars-helpers`

# Summary
This package contains type definitions for handlebars-helpers (http://assemble.io/helpers/).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/handlebars-helpers.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/handlebars-helpers/index.d.ts)
````ts
import * as Handlebars from "handlebars";

declare function helpers(
    groups?: helpers.Options | string | string[],
    options?: helpers.Options,
): { [name: string]: Handlebars.HelperDelegate };

interface Utils {
    /**
     * Returns true if the given value contains the given
     * `object`, optionally passing a starting index.
     */
    contains<T>(val: T[], obj: T, start: number): boolean;

    /**
     * Remove leading and trailing whitespace and non-word
     * characters from the given string.
     */
    chop(str: string): string;

    /**
     * Change casing on the given `string`, optionally
     * passing a delimiter to use between words in the
     * returned string.
     *
     * ```handlebars
     * utils.changecase('fooBarBaz');
     * //=> 'foo bar baz'
     *
     * utils.changecase('fooBarBaz' '-');
     * //=> 'foo-bar-baz'
     * ```
     */
    changecase(str: string, fn: (str: string) => string): string;
}

declare namespace helpers {
    interface Options {
        handlebars?: typeof Handlebars | undefined;
        hbs?: typeof Handlebars | undefined;
    }

    const utils: Utils;
}

export = helpers;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [handlebars](https://npmjs.com/package/handlebars)

# Credits
These definitions were written by [Toilal](https://github.com/Toilal).

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