New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/replace-ext

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/replace-ext - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

replace-ext/index.d.ts

@@ -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.

15

replace-ext/package.json
{
"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).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc