@rajrajhans/ai-renamer
Version:
A Node.js CLI that uses Ollama and LM Studio models (Llava, Gemma, Llama etc.) to intelligently rename files by their contents
23 lines (17 loc) • 460 B
JavaScript
const processPath = require('./processPath')
const configureYargs = require('./configureYargs')
const main = async () => {
try {
const { argv, config } = await configureYargs()
const [inputPath] = argv._
if (!inputPath) {
console.log('🔴 Please provide a file or folder path')
process.exit(1)
}
await processPath({ ...config, inputPath })
} catch (err) {
console.log(err.message)
}
}
main()