# @types/replace-ext

> TypeScript definitions for replace-ext

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

## Install

```sh
npm install @types/replace-ext
pnpm add @types/replace-ext
yarn add @types/replace-ext
bun add @types/replace-ext
```

## 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 | 2.0.2 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

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

## Recent versions

- 2.0.2 (latest) — 2023-11-07
- 2.0.0 (ts3.2) — 2020-09-30
- 0.0.27 (ts2.0) — 2016-09-19
- 2.0.1 — 2023-10-18
- 0.0.26 — 2016-07-14
- 0.0.25-alpha — 2016-07-08
- 0.0.24-alpha — 2016-07-04
- 0.0.23-alpha — 2016-07-02
- 0.0.22-alpha — 2016-07-01
- 0.0.21-alpha — 2016-07-01
- 0.0.20-alpha — 2016-05-25
- 0.0.19-alpha — 2016-05-20
- 0.0.14-alpha — 2016-05-19
- 0.0.13-alpha — 2016-05-17

## README

# Installation
> `npm install --save @types/replace-ext`

# Summary
This package contains type definitions for replace-ext (https://github.com/wearefractal/replace-ext).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/replace-ext.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/replace-ext/index.d.ts)
````ts
/**
 * Replaces the extension from path with extension and returns the updated path string.
 *
 * Does not replace the extension if path is not a string or is empty.
 */
declare function replaceExt(path: string, extension: string): string;

export = replaceExt;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Deividas Bakanas](https://github.com/DeividasBakanas), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).

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