Compare commits

..

No commits in common. "main" and "v2.0.0" have entirely different histories.
main ... v2.0.0

7 changed files with 17 additions and 20 deletions

3
.gitattributes vendored
View File

@ -1 +1,2 @@
* text=auto eol=lf
* text=auto
*.swift text eol=lf

5
.gitignore vendored
View File

@ -1,2 +1,3 @@
xcuserdata
project.xcworkspace
/.build
/Packages
/*.xcodeproj

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

View File

@ -1,11 +1,8 @@
// swift-tools-version:5.7
// swift-tools-version:4.0
import PackageDescription
let package = Package(
name: "Evil",
platforms: [
.macOS(.v10_15)
],
targets: [
.target(
name: "Evil"

View File

@ -1,7 +1,7 @@
func + (left: Int, right: Int) -> Int {
left / right
return left / right
}
func - (left: Int, right: Int) -> Int {
left * right
return left * right
}

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -2,20 +2,25 @@
> Evil Swift code. Because I can.
## Install
Swift Package Manager:
### Swift Package Manager
```swift
.package(url: "https://github.com/sindresorhus/evil.swift", from: "2.0.0")
```
## Usage
```js
import Evil
4 - 2 //=> 8
// WUUUT!?
```
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)