Socket
Socket
Sign inDemoInstall

hotfile

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hotfile - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

9

index.js

@@ -121,6 +121,13 @@ const fs = require('fs')

updateMetadata(newPath){
this.path = newPath
const { name, base, ext } = parse(newPath)
Object.assign(this, { name, base, ext })
return this
}
async rename(newbase) {
const oldPath = this.path
const newPath = this.path.replace(this.base, newbase)
this.updatePath(newPath)
this.updateMetadata(newPath)
await fs.promises.rename(oldPath, newPath)

@@ -127,0 +134,0 @@ return this

2

package.json
{
"name": "hotfile",
"version": "0.3.3",
"version": "0.3.4",
"description": "Hotfile makes working with folders and files in node-js easy and clear.",

@@ -5,0 +5,0 @@ "main": "index.js",

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