Swift Package for Erasing and overwriting the previous output in terminal.
import PackageDescription
let package = Package(
name: "MyPackage",
dependencies: [
.package(url: "http://github.com/aniket965/Eraser.git", from: "1.0.1")
],
targets: [
.target(
name: "MyPackage",
dependencies: ["Eraser"]
)
]
)
import Darwin
import Eraser
print("swift")
// Erases After 1 Second
sleep(1)
erase()
print("Swift ❤️")