Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/hden/cuid
- Owner: hden
- License: mit
- Created: 2015-12-12T12:52:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T02:17:20.000Z (9 months ago)
- Last Synced: 2024-04-25T21:10:43.233Z (8 months ago)
- Language: Clojure
- Size: 36.1 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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