Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hden/cuid

Collision-resistant ids for clojure and clojurescript.
https://github.com/hden/cuid

Last synced: 2 months ago
JSON representation

Collision-resistant ids for clojure and clojurescript.

Awesome Lists containing this project

README

        

# cuid ![Build Status](https://circleci.com/gh/hden/cuid.svg?&style=shield&circle-token=67b78d410994ee5e3274458e1ddf7d1032cb7d5b) [![codecov](https://codecov.io/gh/hden/cuid/branch/master/graph/badge.svg)](https://codecov.io/gh/hden/cuid)
Collision-resistant ids for clojure and clojurescript.
Ported from https://github.com/ericelliott/cuid.
(cuid) returns a short random string with some collision-busting measures.
Safe to use as HTML element ID's, and unique server-side record lookups.

![clojars](https://clojars.org/cuid/latest-version.svg)

## Usage

```clj
(ns example
(:require [cuid.core :as c]))

(println (c/cuid))

;; optionally with custom fingerprint
(println (c/cuid {:foo "bar"}))
```

## License
MIT