npm.io
2.0.2 • Published 2 years ago

@types/replace-ext

Licence
MIT
Version
2.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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

/**
 * 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 1536 GMT
  • Dependencies: none

Credits

These definitions were written by Deividas Bakanas, and Piotr Błażejewicz.