Skip to content

Commit

Permalink
Added some relative links to the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
daveverwer committed Jul 13, 2023
1 parent 3a128fd commit 6874884
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Binary file added .readme-images/usage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# LeftPad

This is a sample package to demonstrate adding additional metadata to a Package.swift file. It should never be used in production. I implemented a `leftPad` extension to `String` purely because of a little piece of [internet history](https://qz.com/646467/how-one-programmer-broke-the-internet-by-deleting-a-tiny-piece-of-code/).
This is a sample package to demonstrate adding additional metadata to a Package.swift file. **It should never be used in production**. I implemented a `leftPad` extension to `String` purely because of a little piece of [internet history](https://qz.com/646467/how-one-programmer-broke-the-internet-by-deleting-a-tiny-piece-of-code/).

[Try LeftPad in a Swift Playground](https://staging.swiftpackageindex.com/try-in-a-playground?dependencies=daveverwer/LeftPad)

## Usage

This screenshot should show you everything you need to know:

![Screenshot of a Swift Playground with LeftPad in use.](/.readme-images/usage.png)

## Implementation

The algorithm used to pad the left hand side of a string with spaces is highly complex and delicate. If you must look, please treat the information in [the source file](/daveverwer/LeftPad/blob/master/Sources/LeftPad/LeftPad.swift) with care. With great power comes great responsibility.

## Revision History

- `1.0.0` - The original, and what many consider to be the best release.
Expand Down

0 comments on commit 6874884

Please sign in to comment.