unused-filename

File name generator

A utility that generates unique file names by appending numbers to existing filenames.

Get an unused filename by appending a number if it exists: file.txtfile (1).txt

GitHub

141 stars
5 watching
9 forks
Language: JavaScript
last commit: over 2 years ago

Related projects:

Repository Description Stars
sindresorhus/filenamify Converts a string to a valid filename by replacing reserved characters and truncating long names. 489
sindresorhus/superheroes A collection of pre-defined lists for generating random names of various kinds. 233
sindresorhus/find-up-cli A utility for finding files by walking up parent directories 39
sindresorhus/unique-random A library that generates random numbers with consecutive uniqueness constraints 116
sindresorhus/dog-names Provides a simple API to generate random dog names 124
sindresorhus/get-stream A utility library for working with streams in JavaScript 341
sindresorhus/del Deletes files and directories using glob patterns with support for promises, multiple files, and protection against deleting the current working directory. 1,325
sindresorhus/random-int Generates random integers within specified ranges 87
sindresorhus/username A module that retrieves and caches the current user's username from environment variables or system commands. 142
sindresorhus/pokemon A module that provides access to Pokémon names and IDs in various languages. 490
sindresorhus/random-float A utility function to generate random floating-point numbers within specified ranges. 36
sindresorhus/tempy Provides functions to generate temporary file or directory paths. 424
sindresorhus/find-up A utility library for finding files or directories by walking up parent directories 582
sindresorhus/trash-cli A utility that moves files and folders to the trash rather than permanently deleting them. 1,329
sindresorhus/npm-name A utility to check if package or organization names are available on npm. 168