https://github.com/raphaelmansuy/cuid
Collision-resistant ids optimized for horizontal scaling and binary search lookup performance. Based on ericelliott javascript library
https://github.com/raphaelmansuy/cuid
cuid swift
Last synced: 11 months ago
JSON representation
Collision-resistant ids optimized for horizontal scaling and binary search lookup performance. Based on ericelliott javascript library
- Host: GitHub
- URL: https://github.com/raphaelmansuy/cuid
- Owner: raphaelmansuy
- License: mit
- Created: 2018-05-13T15:57:13.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-11-16T20:24:14.000Z (over 4 years ago)
- Last Synced: 2025-07-08T13:19:10.771Z (12 months ago)
- Topics: cuid, swift
- Language: Swift
- Size: 45.9 KB
- Stars: 8
- Watchers: 2
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# cuid
[](https://travis-ci.org/raphaelmansuy/cuid)
[](https://cocoapods.org/pods/cuid)
[](https://cocoapods.org/pods/cuid)
[](https://cocoapods.org/pods/cuid)
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fraphaelmansuy%2Fcuid?ref=badge_shield)
Collision-resistant ids optimized for horizontal scaling and binary search lookup performance.
This is port in Swift 4.2 language of the javascript project [https://github.com/ericelliott/cuid](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](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'cuid'
```
## Author
Raphael MANSUY, raphael.mansuy@gmail.com
## License
cuid is available under the MIT license. See the LICENSE file for more info.
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fraphaelmansuy%2Fcuid?ref=badge_large)