# @types/mu2

> TypeScript definitions for mu2

Latest version **0.0.34** (published 2024-07-29) · MIT license · 0 weekly downloads

## Install

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

## 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.0.34 |
| Published | 2024-07-29 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.0.34 (latest) — 2024-07-29
- 0.0.33 (ts4.7) — 2023-11-07
- 0.0.30 (ts3.5) — 2017-08-21
- 0.0.32 — 2023-10-18
- 0.0.31 — 2023-09-27
- 0.0.29 — 2016-09-19
- 0.0.28 — 2016-07-14
- 0.0.27-alpha — 2016-07-08
- 0.0.26-alpha — 2016-07-04
- 0.0.25-alpha — 2016-07-02
- 0.0.24-alpha — 2016-07-01
- 0.0.23-alpha — 2016-07-01
- 0.0.22-alpha — 2016-05-25
- 0.0.21-alpha — 2016-05-20
- 0.0.16-alpha — 2016-05-19
- … 1 more at https://npm.io/package/@types/mu2/versions

## README

# Installation
> `npm install --save @types/mu2`

# Summary
This package contains type definitions for mu2 (https://github.com/raycmorgan/mu).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mu2.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mu2/index.d.ts)
````ts
// Imported from: https://github.com/soywiz/typescript-node-definitions/mu2.d.ts

/// <reference types="node" />

export declare var root: string;

export declare function compileAndRender(templateName: string, view: any): NodeJS.ReadableStream;

export declare function compile(filename: string, callback: (err: Error, parsed: IParsed) => void): void;

export declare function compileText(
    name: string,
    template: string,
    callback: (err: Error, parsed: IParsed) => void,
): void;
export declare function compileText(name: string, template: string): IParsed;
export declare function compileText(template: string): IParsed;

export declare function render(filenameOrParsed: string, view: any): NodeJS.ReadableStream;
export declare function render(filenameOrParsed: IParsed, view: any): NodeJS.ReadableStream;

export declare function renderText(template: string, view: any, partials?: any): NodeJS.ReadableStream;

export declare function clearCache(templateName?: string): void;

export interface IParsed {}

````

### Additional Details
 * Last updated: Mon, 29 Jul 2024 19:36:25 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by .

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