Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fireblade-engine/uuid
A dependency free, lightweight, fast and easy to use Universally Unique Identifier (UUID) implementation in pure Swift
https://github.com/fireblade-engine/uuid
library mit-license spm swift swift-package-manager uuid
Last synced: 2 months ago
JSON representation
A dependency free, lightweight, fast and easy to use Universally Unique Identifier (UUID) implementation in pure Swift
- Host: GitHub
- URL: https://github.com/fireblade-engine/uuid
- Owner: fireblade-engine
- License: mit
- Created: 2019-09-15T09:20:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-24T09:42:12.000Z (3 months ago)
- Last Synced: 2024-11-24T10:26:56.167Z (3 months ago)
- Topics: library, mit-license, spm, swift, swift-package-manager, uuid
- Language: Swift
- Homepage:
- Size: 71.3 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Fireblade UUID

[](LICENSE)This is a **Swift** implementation of [Universally Unique Identifier (UUID)](https://en.wikipedia.org/wiki/Universally_unique_identifier); it's **lightweight**, **fast** and **easy to use**, and complies with [RFC4122](https://tools.ietf.org/html/rfc4122).
The module is developed and maintained as part of the [Fireblade Game Engine](https://github.com/fireblade-engine) project.
## 🚀 Getting Started
These instructions will get your copy of the project up and running on your local machine and provides a code example.
### 📋 Prerequisites
* [Swift 5.1+](https://swift.org/)
* [Swift Package Manager (SPM)](https://github.com/apple/swift-package-manager)
* [Swiftlint](https://github.com/realm/SwiftLint) for linting - (optional)
* [SwiftEnv](https://swiftenv.fuller.li/) for Swift version management - (optional)### 💻 Installing
Fireblade UUID is available for all platforms that support [Swift 5.1+](https://swift.org/) and higher and the [Swift Package Manager (SPM)](https://github.com/apple/swift-package-manager).
Extend the following lines in your `Package.swift` file or use it to create a new project.
```swift
// swift-tools-version:5.1import PackageDescription
let package = Package(
name: "YourPackageName",
dependencies: [
.package(url: "https://github.com/fireblade-engine/uuid.git", from: "1.1.0")
],
targets: [
.target(
name: "YourTargetName",
dependencies: ["FirebladeUUID"])
]
)```
## 📝 Code Example
```swift
// create a UUID
let uuid = UUID()// print a string representation
print(uuid.uuidString)```
## ✍️ Authors
This project is currently maintained by [Christian Treffs](https://github.com/ctreffs).
See also the list of [contributors](https://github.com/fireblade-engine/uuid/contributors) who participated in this project.## 🔏 License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
## ♻ Alternatives
- [alexdrone/PushID](https://github.com/alexdrone/PushID)
- [coderyi/YiUUID](https://github.com/coderyi/YiUUID)
- [DavidSkrundz/UUID](https://github.com/DavidSkrundz/UUID)
- [drichardson/SwiftyUUID](https://github.com/drichardson/SwiftyUUID)
- [dtop/SwiftUUIDv5](https://github.com/dtop/SwiftUUIDv5)
- [swift-extras/swift-extras-uuid](https://github.com/swift-extras/swift-extras-uuid)
- [ocworld/UUIDStringStyle](https://github.com/ocworld/UUIDStringStyle)
- [PureSwift/CUUID](https://github.com/PureSwift/CUUID)
- [Swift-UUID](https://github.com/x43x61x69/Swift-UUID)
- [uuid-kit](https://github.com/baarde/uuid-kit)
- [uuid-swift](https://github.com/jrikhof/short-uuid-swift)
- [nuekodory/Swift-UUIDv3-UUIDv5](https://github.com/nuekodory/Swift-UUIDv3-UUIDv5)
- [WeZZard/UUID](https://github.com/WeZZard/UUID)
- [ZewoGraveyard/UUID](https://github.com/ZewoGraveyard/UUID)