Renumbers files to look like this:
01-a-file.html 02-another-file.html 03-...
npm install -g renumber-files
renumber-files [_dir_] [--increment <increment>] [--start <start>] [[-exclude <filename>]] [--dirs]
Will renumber the files in the directory specified, or current directory if not specified.
The delta between each number will be increment, where the default is 1,
and will start at start, where the default is 1. It will exclude
<filename> from the renumbering.
If dirs, then listing will also take into account directories
The package exposes the function
options is an object with the optional fields:
start: from which number to start the numbering. Default 1.
increment: how much to increment each number. Default 1.
separator: what will be the separator between the number and the name. Default '-'.
excludeFiles: an array of filenames to exclude from the renumbering
The renumbering works like this:
<number><numberSuffix>-<filename>, where number is padded with zeros to make a lexical sort work.