Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 13, 2024 via pnpm

unique-filename 1.1.1

Generate a unique filename for use in temporary directories or caches.
Package summary
Share
0
issues
2
licenses
2
ISC
1
MIT
Package created
7 May 2015
Version published
20 Sep 2018
Maintainers
5
Total deps
3
Direct deps
1
License
ISC

Issues

0
This package has no issues

Licenses

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
unique-filename@1.1.1
unique-slug@2.0.2

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
imurmurhash@0.1.4
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of unique-filename 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
unique-slug2.0.21.57 kBISC
prod

Visualizations

Frequently Asked Questions

What does unique-filename do?

The unique-filename npm package is a useful tool designed to generate unique filenames. These filenames are typically employed within temporary directories or caches. If you're looking to prevent filename clash, or require a unique identifier for files, this package can handle that.

How do you use unique-filename?

If you want to make use of unique-filename in your projects, you'll need to install it via npm and then require it within your JavaScript code.

Below is an example of how to use the unique-filename package:

const uniqueFilename = require('unique-filename');

// Generate a random unique filename in the OS tmp directory 
// This might return something like: '/tmp/c5b28f47'
const randomTmpfile = uniqueFilename(os.tmpdir());

// Generate a random unique filename in the OS tmp directory with a specific prefix 
// This might return something like: '/tmp/my-test-51a7b48d'
const randomPrefixedTmpfile = uniqueFilename(os.tmpdir(), 'my-test');

// Generate a unique filename based on a specific string in a custom directory with a specific prefix
// This might return something like: '/my-tmp-dir/testing-7ddd44c0'
const uniqueTmpfile = uniqueFilename('/my-tmp-dir', 'testing', '/my/thing/to/uniq/on');

Where are the unique-filename docs?

The comprehensive documentation for unique-filename can be found on the npm package's GitHub page, which is accessible at https://github.com/npm/unique-filename.git. The documentation provides details on how to use each of the functions provided in the unique-filename package, ensuring you can seamlessly incorporate it into your projects.