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

ai-renamer

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai-renamer - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

src/saveFile.js

2

package.json
{
"version": "1.0.12",
"version": "1.0.13",
"license": "GPL-3.0",

@@ -4,0 +4,0 @@ "name": "ai-renamer",

const path = require('path')
const fs = require('fs').promises
const isImage = require('./isImage')
const saveFile = require('./saveFile')
const getNewName = require('./getNewName')

@@ -39,6 +39,3 @@ const readFileContent = require('./readFileContent')

const dir = path.dirname(filePath)
const newFileName = newName + ext
const newPath = path.join(dir, newFileName)
await fs.rename(filePath, newPath)
const newFileName = await saveFile({ ext, newName, filePath })
console.log(`🟢 Renamed: ${fileName} to ${newFileName}`)

@@ -45,0 +42,0 @@ } catch (err) {

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