unused-filename
by sindresorhus
Get an unused filename by appending a number if it exists: file.txt → file (1).txt
AI summary
File name generator
A utility that generates unique file names by appending numbers to existing filenames.
- stars
- 141
- forks
- 9
- watching
- 5
Similar projects
Found by comparing what the projects do, not just their names.
Filename cleaner
Converts a string to a valid filename by replacing reserved characters and truncating long names.
Name generator
A collection of pre-defined lists for generating random names of various kinds.
File finder
A utility for finding files by walking up parent directories
Random generator
A library that generates random numbers with consecutive uniqueness constraints
Dog names generator
Provides a simple API to generate random dog names
Stream utility
A utility library for working with streams in JavaScript
sindresorhus/del1.3K
File and directory cleaner
Deletes files and directories using glob patterns with support for promises, multiple files, and protection against deleting the current working directory.
Random number generator
Generates random integers within specified ranges
Username retrieval
A module that retrieves and caches the current user's username from environment variables or system commands.
Pokémon lookup
A module that provides access to Pokémon names and IDs in various languages.
Float generator
A utility function to generate random floating-point numbers within specified ranges.
Temp generators
Provides functions to generate temporary file or directory paths.
Directory finder
A utility library for finding files or directories by walking up parent directories
Trash utility
A utility that moves files and folders to the trash rather than permanently deleting them.
Name checker
A utility to check if package or organization names are available on npm.