@types/replace-ext
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1,7 +0,1 @@ | ||
// Type definitions for replace-ext 2.0 | ||
// Project: https://github.com/wearefractal/replace-ext | ||
// Definitions by: Deividas Bakanas <https://github.com/DeividasBakanas> | ||
// Piotr Błażejewicz <https://github.com/peterblazejewicz> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
/** | ||
@@ -8,0 +2,0 @@ * Replaces the extension from path with extension and returns the updated path string. |
{ | ||
"name": "@types/replace-ext", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "TypeScript definitions for replace-ext", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/replace-ext", | ||
"license": "MIT", | ||
@@ -9,9 +10,9 @@ "contributors": [ | ||
"name": "Deividas Bakanas", | ||
"url": "https://github.com/DeividasBakanas", | ||
"githubUsername": "DeividasBakanas" | ||
"githubUsername": "DeividasBakanas", | ||
"url": "https://github.com/DeividasBakanas" | ||
}, | ||
{ | ||
"name": "Piotr Błażejewicz", | ||
"url": "https://github.com/peterblazejewicz", | ||
"githubUsername": "peterblazejewicz" | ||
"githubUsername": "peterblazejewicz", | ||
"url": "https://github.com/peterblazejewicz" | ||
} | ||
@@ -28,4 +29,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "7590f68a0ed95f6f7164e412c0f1ac05ec4313ed3e1c6a4c72af72a2a9fa98ea", | ||
"typeScriptVersion": "3.2" | ||
"typesPublisherContentHash": "b04d92865d742361f8d550815496214ac4f23c9cbf401eb570eb7fec35a29049", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,9 +9,20 @@ # Installation | ||
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: Wed, 30 Sep 2020 21:32:42 GMT | ||
* Last updated: Wed, 18 Oct 2023 11:45:06 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
# Credits | ||
These definitions were written by [Deividas Bakanas](https://github.com/DeividasBakanas), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
3343
0
28
7
1