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.
Strip specific tags from a string of HTML.
Write data to the file system, creating any intermediate directories if they don't already exist....
Easily rename files using custom rename functions that are automatically used against any file pa...
Create an array by repeating the given string n times.
When copying or moving files, it's common for operating systems to automatically add an increment...
Lightweight methods for reading from the file system, async and sync, with extras for stripping b...
Repeat the given string n times. Fastest implementation for repeating a string (2x faster than th...
Returns true if a filepath starts with the given string. Works with windows and posix/unix paths.
Get the line number for each regex match found in a string.
Strip 'use strict' statements from a string of javascript.
Detects when a new file is different than an existing file and prompts the user for action.
Generate a unique sequential ID. Optionally pass a prefix, suffix, or multiplier.
Strip a byte order mark (BOM) from a string.
Return the unique words in a string or array.
Get the basename of a filepath excluding extension.