Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rename-overwrite

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rename-overwrite - npm Package Compare versions

Comparing version 3.1.2 to 4.0.0

6

CHANGELOG.md
# rename-overwrite
## 4.0.0
### Breaking Changes
- Drop Node.js 10 support
## 3.1.0

@@ -4,0 +10,0 @@

6

index.js
'use strict'
const fs = require('fs')
const path = require('path')
const promisify = require('util').promisify
const rimraf = promisify(require('rimraf'))
const rimrafSync = require('rimraf').sync
const rimraf = require('@zkochan/rimraf')

@@ -65,3 +63,3 @@ module.exports = async function renameOverwrite (oldPath, newPath) {

case 'EPERM': // weird Windows stuff
rimrafSync(newPath)
rimraf.sync(newPath)
fs.renameSync(oldPath, newPath)

@@ -68,0 +66,0 @@ return

{
"name": "rename-overwrite",
"version": "3.1.2",
"version": "4.0.0",
"description": "Like `fs.rename` but overwrites existing file or directory",

@@ -11,3 +11,3 @@ "main": "index.js",

"engines": {
"node": ">=10.12"
"node": ">=12.10"
},

@@ -30,5 +30,2 @@ "scripts": {

"homepage": "https://github.com/zkochan/packages/tree/master/rename-overwrite#readme",
"dependencies": {
"rimraf": "^3.0.2"
},
"devDependencies": {

@@ -41,3 +38,6 @@ "load-json-file": "6.2.0",

"write-json-file": "^4.3.0"
},
"dependencies": {
"@zkochan/rimraf": "^2.1.0"
}
}
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