Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

unique-slug

Package Overview
Dependencies
1
Maintainers
5
Versions
6
Issues
File Explorer

Advanced tools

unique-slug

Generate a unique character string suitible for use in files and URLs.

    4.0.0latest

Version published
Maintainers
5
Weekly downloads
17,516,376
increased by5.53%

Weekly downloads

Changelog

Source

4.0.0 (2022-10-10)

⚠️ BREAKING CHANGES

  • unique-slug is now compatible with the following semver range for node: ^14.17.0 || ^16.13.0 || >=18.0.0

Features

  • 81375b9 #29 postinstall for dependabot template-oss PR (@lukekarrys)

Readme

Source

unique-slug

Generate a unique character string suitible for use in files and URLs.

var uniqueSlug = require('unique-slug') var randomSlug = uniqueSlug() var fileSlug = uniqueSlug('/etc/passwd')

uniqueSlug(str) → String (8 chars)

If str is passed in then the return value will be its murmur hash in hex.

If str is not passed in, it will be 4 randomly generated bytes converted into 8 hexadecimal characters.

FAQs

What is unique-slug?

Generate a unique character string suitible for use in files and URLs.

Is unique-slug popular?

The npm package unique-slug receives a total of 14,694,719 weekly downloads. As such, unique-slug popularity was classified as popular.

Is unique-slug well maintained?

We found that unique-slug demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 5 open source maintainers collaborating on the project.

Last updated on 14 Oct 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc