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
No README available, please check again later.
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 generate random strings like passwords, with simple options for specifying a length and fo...
Strip a byte order mark (BOM) from a string.
File system utils for normalizing things like eol, encoding and BOM.
Fast, basic lib for recursively reading directories.
Create an array by repeating the given string n times.
Easily rename files using custom rename functions that are automatically used against any file pa...
Returns true if a windows file path has invalid characters.
When copying or moving files, it's common for operating systems to automatically add an increment...
Wrap, align and justify the words in a string.
Detects when a new file is different than an existing file and prompts the user for action.
Change the indentation in a string.
Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many...