unique-slug

WebJar for unique-slug

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

unique-slug
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

unique-slug
WebJar for unique-slug
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/npm/unique-slug

Download unique-slug

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/unique-slug/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>unique-slug</artifactId>
    <version>2.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/unique-slug/
implementation 'org.webjars.npm:unique-slug:2.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/unique-slug/
implementation ("org.webjars.npm:unique-slug:2.0.2")
'org.webjars.npm:unique-slug:jar:2.0.2'
<dependency org="org.webjars.npm" name="unique-slug" rev="2.0.2">
  <artifact name="unique-slug" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='unique-slug', version='2.0.2')
)
libraryDependencies += "org.webjars.npm" % "unique-slug" % "2.0.2"
[org.webjars.npm/unique-slug "2.0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : imurmurhash jar [0.1.4,0.2)

Project Modules

There are no modules declared in this project.

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.

org.webjars.npm

npm

node package manager

Versions

Version
2.0.2
2.0.1
2.0.0