Operating systems commonly add a trailing increment, or the word 'copy', or something similar to duplicate files. This strips those increments. Tested on Windows, MacOS, and Linux.
MIT License
Returns true if a windows file path has invalid characters.
Write data to the file system, creating any intermediate directories if they don't already exist....
Repeat the given string n times. Fastest implementation for repeating a string (2x faster than th...
Easily rename files using custom rename functions that are automatically used against any file pa...
Change the indentation in a string.
Easily generate random strings like passwords, with simple options for specifying a length and fo...
When copying or moving files, it's common for operating systems to automatically add an increment...
Create an array by repeating the given string n times.
Fast, basic lib for recursively reading directories.
Strip a byte order mark (BOM) from a string.
Detects when a new file is different than an existing file and prompts the user for action.
Wrap, align and justify the words in a string.
File system utils for normalizing things like eol, encoding and BOM.
Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many...