Socket
Socket
Sign inDemoInstall

unused-filename

Package Overview
Dependencies
2
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 1.0.0

4

package.json
{
"name": "unused-filename",
"version": "0.1.0",
"description": "Get a unused filename by appending a number if it exists: `file.txt` → `file (1).txt`",
"version": "1.0.0",
"description": "Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`",
"license": "MIT",

@@ -6,0 +6,0 @@ "repository": "sindresorhus/unused-filename",

# unused-filename [![Build Status](https://travis-ci.org/sindresorhus/unused-filename.svg?branch=master)](https://travis-ci.org/sindresorhus/unused-filename)
> Get a unused filename by appending a number if it exists: `file.txt` → `file (1).txt`
> Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`

@@ -38,3 +38,3 @@ Useful for safely writing, copying, moving files without overwriting existing files.

Returns a `Promise` for a `string`.
Returns a `Promise<string>`.

@@ -41,0 +41,0 @@ ### unusedFilename.sync(filepath)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc