# @types/envhandlebars

> TypeScript definitions for envhandlebars

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

## Install

```sh
npm install @types/envhandlebars
pnpm add @types/envhandlebars
yarn add @types/envhandlebars
bun add @types/envhandlebars
```

## 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.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.4.7 |
| Published | 2023-11-07 |
| First published | 2020-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51369 |
| Maintainers | types |

## Links

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

## Dependencies (2)

- [handlebars](https://npm.io/package/handlebars.md) ^4.7.6
- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 1.4.7 (latest) — 2023-11-07
- 1.4.3 (ts4.3) — 2023-04-16
- 1.4.2 (ts3.7) — 2021-09-26
- 1.4.1 (ts3.6) — 2021-07-08
- 1.4.0 (ts3.0) — 2020-07-22
- 1.4.6 — 2023-10-18
- 1.4.5 — 2023-10-10
- 1.4.4 — 2023-09-23

## README

# Installation
> `npm install --save @types/envhandlebars`

# Summary
This package contains type definitions for envhandlebars (https://github.com/cgmartin/envhandlebars#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/envhandlebars.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/envhandlebars/index.d.ts)
````ts
/// <reference types="node" />
import H = require("handlebars");

/**
 * A simple templating utility, akin to envsubst, but using Handlebars for more complex logic.
 */
declare function envhandlebars(opts?: envhandlebars.Options, cb?: envhandlebars.EnvHandlebarsCallback): void;
declare function envhandlebars(cb?: envhandlebars.EnvHandlebarsCallback): void;

declare namespace envhandlebars {
    interface Options {
        /** @default process.env */
        env?: typeof process.env | undefined;
        /** @default process.exit */
        exit?: typeof process.exit | undefined;
        /** @default process.stdin */
        stdin?: typeof process.stdin | undefined;
        /** @default process.stdout */
        stout?: typeof process.stdout | undefined;
        /** @default process.stderr */
        stderr?: typeof process.stderr | undefined;
        /** @default true */
        arraysEnabled?: boolean | undefined;
        /** @default false */
        arrayVarPrefix?: boolean | undefined;
        /**
         * Custom Mustache helpers and partials can be implemented by extending the envhandlebars module
         * with your own Node.js wrapper script
         */
        extendHandlebars?: ExtendHandlebarsFunc | undefined;
    }

    type ExtendHandlebarsFunc = (Handlebars: typeof H) => void;

    type EnvHandlebarsCallback = (err?: Error) => void;
}

export = envhandlebars;

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [handlebars](https://npmjs.com/package/handlebars)

# Credits
These definitions were written by [Piotr Błażejewicz](https://github.com/peterblazejewicz).

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