# @types/gulp-rename

> TypeScript definitions for gulp-rename

Latest version **2.0.7** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/gulp-rename
pnpm add @types/gulp-rename
yarn add @types/gulp-rename
bun add @types/gulp-rename
```

## Health

**Score 65/100 (B)** — status: stable.

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.7 |
| Published | 2025-10-24 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51443 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 2.0.7 (latest) — 2025-10-24
- 2.0.6 (ts4.5) — 2023-11-22
- 2.0.2 (ts4.4) — 2023-05-10
- 2.0.1 (ts3.9) — 2021-07-06
- 2.0.0 (ts3.3) — 2020-11-23
- 0.0.33 (ts2.5) — 2017-11-09
- 2.0.5 — 2023-11-07
- 2.0.4 — 2023-10-18
- 2.0.3 — 2023-09-20
- 0.0.32 — 2017-03-16
- 0.0.31 — 2016-09-19
- 0.0.30 — 2016-08-25
- 0.0.29 — 2016-08-22
- 0.0.28 — 2016-07-14
- 0.0.27-alpha — 2016-07-08
- … 8 more at https://npm.io/package/@types/gulp-rename/versions

## README

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

declare namespace rename {
    interface ParsedPath {
        dirname: string;
        basename: string;
        extname: string;
    }

    interface Options {
        dirname?: string | undefined;
        basename?: string | undefined;
        extname?: string | undefined;
        prefix?: string | undefined;
        suffix?: string | undefined;
    }

    interface PluginOptions {
        multiExt?: boolean | undefined;
    }
}

declare function rename(
    // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
    obj: string | rename.Options | ((path: rename.ParsedPath, file: File) => rename.ParsedPath | void),
    options?: rename.PluginOptions,
): NodeJS.ReadWriteStream;
export = rename;

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/vinyl](https://npmjs.com/package/@types/vinyl)

# Credits
These definitions were written by [Asana](https://asana.com).

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