replace-ext/LICENSE000666 000000 000000 0000002165 13735174573012351 0ustar00000000 000000 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE replace-ext/README.md000666 000000 000000 0000001111 13735174573012611 0ustar00000000 000000 # 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. ### Additional Details * Last updated: Wed, 30 Sep 2020 21:32:42 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). replace-ext/index.d.ts000666 000000 000000 0000001100 13735174573013231 0ustar00000000 000000 // Type definitions for replace-ext 2.0 // Project: https://github.com/wearefractal/replace-ext // Definitions by: Deividas Bakanas // Piotr Błażejewicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * 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; replace-ext/package.json000666 000000 000000 0000001573 13735174572013633 0ustar00000000 000000 { "name": "@types/replace-ext", "version": "2.0.0", "description": "TypeScript definitions for replace-ext", "license": "MIT", "contributors": [ { "name": "Deividas Bakanas", "url": "https://github.com/DeividasBakanas", "githubUsername": "DeividasBakanas" }, { "name": "Piotr Błażejewicz", "url": "https://github.com/peterblazejewicz", "githubUsername": "peterblazejewicz" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/replace-ext" }, "scripts": {}, "dependencies": {}, "typesPublisherContentHash": "7590f68a0ed95f6f7164e412c0f1ac05ec4313ed3e1c6a4c72af72a2a9fa98ea", "typeScriptVersion": "3.2" }