Skip to content

ashhanai/cuid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cuid

CI Status Version License Platform

Collision-resistant ids optimized for horizontal scaling and binary search lookup performance.

This is port in Swift 4.1 language of the javascript project https://github.com/ericelliott/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.

let id = Cuid.generateId()

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

None

Installation

cuid is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'cuid'

Author

Raphael MANSUY, raphael.mansuy@gmail.com

License

cuid is available under the MIT license. See the LICENSE file for more info.

About

Collision-resistant ids optimized for horizontal scaling and binary search lookup performance. Based on ericelliott javascript library

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Swift 63.7%
  • Ruby 36.3%