rohanorton / batch-file-renamer Goto Github PK
View Code? Open in Web Editor NEWModule to simplify writing node.js commandline applications that rename groups of files
License: MIT License
Module to simplify writing node.js commandline applications that rename groups of files
License: MIT License
What should happen if there is duplicate file destination?
My gut says that we should bail out before touching the file system and log out a clear error message.
Is this always what we want to happen? How about adding increments to files like windows does?
duplicate-filename(1).txt
duplicate-filename(2).txt
duplicate-filename(3).txt
Tried it, but it was harder than I thought... maybe learn how to actually use streams! lol
Should be able to point at a directory and rename everything inside it
Should be able to add a comma separated list of extensions to rename so that we can ignore files
Oh god, I'm going to have to write some documentation for this thing, aren't I ... oh well.
Should be able to specify the directory to which all renamed files are moved to output
Currently there is no logging. Need to be able to log to varying degrees controllable by verbosity flags.
Does not work on windows. Nothing is logged, if --DEBUG is enabled, "Cleaning up" is logged.
Also, is the .tmp
folder stored in the package or in the cwd?
Currently there are no means of dealing with issues caused by incorrect permissions, need to add this to at least the error handler.
It would be great to have a dry run flag which would mock changes to filesystem without altering it.
this could use mock-fs
not sure if that will interfere with tests though... worth experimenting!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.