Comparing version 0.1.2 to 0.1.3
@@ -5,2 +5,3 @@ #!/usr/bin/env node | ||
const path = require("node:path"); | ||
const packageJson = require("./package.json"); | ||
@@ -42,2 +43,3 @@ function changeFileExtensions(folderPath, currentExtension, newExtension) { | ||
console.log("Options:"); | ||
console.log(" -v, --version Display the version"); | ||
console.log(" -h, --help Display this help message"); | ||
@@ -60,2 +62,7 @@ console.log(" -f, --folder <folder> Specify the folder name"); | ||
if (args.includes("-v") || args.includes("--version")) { | ||
console.log(`chfe v-${packageJson.version}`); | ||
process.exit(0); | ||
} | ||
const options = { | ||
@@ -62,0 +69,0 @@ folderPath: "", |
{ | ||
"name": "chfe", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "chfe (Change Files Extensions) is a command-line tool that simplifies the process of changing file extensions within a specified folder. It allows you to quickly and effortlessly update the extensions of multiple files in one go. With chfe, you can easily convert file extensions to match your needs, whether you're migrating to a different file format or simply organizing your files. By providing the folder name, current extension, and new extension as arguments, chfe automates the renaming process, saving you time and effort. Seamlessly integrated with Node.js, chfe is an efficient solution for batch file extension changes.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6548
95