Skip to content

Swift package to get the current user.

License

Notifications You must be signed in to change notification settings

wmorgue/whoami.swift

Repository files navigation

whoami.swift

Retrieve the current user and environment through simple functions.

This package can:

  • Get the user's full name
  • Get the user's username
  • Get the user's preferred language(s)
  • Get the devices's hostname
  • Some unimplemented TODO

Example

Add this package to current project and import.

import Whoami

func main() {
    let host = Whoami.hostName
    print("Current host: \(host)")
}

About

Swift package to get the current user.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages