Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

unique-slug

Package Overview
Dependencies
1
Maintainers
3
Versions
4
Issues
File Explorer

Advanced tools

unique-slug

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

    2.0.2latest

Version published
Maintainers
3
Weekly downloads
13,689,476
decreased by-3.41%

Weekly downloads

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 10,982,631 weekly downloads. As such, unique-slug popularity was classified as popular.

Is unique-slug well maintained?

We found that unique-slug demonstrated a not healthy version release cadence and project activity. It has 3 open source maintainers collaborating on the project.

Last updated on 11 Jun 2019
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