Skip to content

Commit babc085

Browse files
Update readme
1 parent 4279d45 commit babc085

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1-
# ByteSymbols
1+
# Swift Byte Symbols
22

33
A simple Swift package that exposes an `ASCII` namespace with named constants for the 128 ASCII code points.
4+
5+
## Using Swift Byte Symbols in your project
6+
7+
Add `swift-byte-symbols` as a dependency to your package:
8+
9+
```swift
10+
let package = Package(
11+
// ...
12+
dependencies: [
13+
.package(url: "https://github.com/Formkunft/swift-byte-symbols", .upToNextMajor(from: "2.0.0")),
14+
],
15+
targets: [
16+
.target(
17+
// ...
18+
dependencies: [
19+
.product(name: "ByteSymbols", package: "swift-byte-symbols"),
20+
]),
21+
]
22+
)
23+
```
24+
25+
Then, import `ByteSymbols` in your code:
26+
27+
```swift
28+
import ByteSymbols
29+
30+
// ...
31+
```

0 commit comments

Comments
 (0)