New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

uniquefilename

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uniquefilename - npm Package Compare versions

Comparing version

to
1.0.1

2

package.json
{
"name": "uniquefilename",
"version": "1.0.0",
"version": "1.0.1",
"main": "index.js",

@@ -5,0 +5,0 @@ "description": "Finds a unique filename using incremental values",

# uniquefilename
[![NPM Version][npm-image]][npm-url]
[![npm version](https://badge.fury.io/js/uniquefilename.svg)](http://badge.fury.io/js/uniquefilename)

@@ -28,4 +28,4 @@ A module to get a unique filename using incremental values.

var uniquefilename = require('uniquefilename');
options = {};
uniquefilename.get('/path/to/dir/file.jpg', {separator: '~', paddingCharacter: '0', paddingSize: 4, mode: 'alphanumeric'}, function(filename) {
options = {separator: '~', paddingCharacter: '0', paddingSize: 4, mode: 'alphanumeric'};
uniquefilename.get('/path/to/dir/file.jpg', options, function(filename) {
// your code here: filename might be "/path/to/dir/file.jpg",

@@ -32,0 +32,0 @@ // "/path/to/dir/file~000h.jpg", "/path/to/dir/file~00h9.jpg", etc...