Latest 0.1.0
Homepage https://github.com/czechboy0/Environment
License MIT
Platforms osx 10.9, ios 8.0, watchos 2.0, tvos 9.0
Authors

Build Status
Latest Release
Platforms
Package Managers

Blog
Twitter Czechboy0

Easy access to environment variables from Swift. Linux & OS X ready.

Installation

Swift Package Manager

.Package(url: "https://github.com/czechboy0/Environment.git", majorVersion: 0)

CocoaPods

pod 'Environment'

Usage

Easily get, set and remove environment variables.

Environment().getVar("PATH") //Optional("/Users/honzadvorsky/")
Environment().setVar("TEST_RESULT", value: "1")
Environment().removeVar("TEST_RESULT")

:gift_heart: Contributing

Please create an issue with a description of your problem or open a pull request with a fix.

v: License

MIT

alien: Author

Honza Dvorsky – http://honzadvorsky.com, @czechboy0

Latest podspec

{
    "name": "Environment",
    "version": "0.1.0",
    "summary": "Easy access to environment variables from Swift. Linux & OS X ready.",
    "description": "Access environment variables with ease, even in places where `NSProcessInfo` is unavailable. Linux & OS X ready.",
    "homepage": "https://github.com/czechboy0/Environment",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Honza Dvorsky": "https://honzadvorsky.com"
    },
    "social_media_url": "http://twitter.com/czechboy0",
    "platforms": {
        "osx": "10.9",
        "ios": "8.0",
        "watchos": "2.0",
        "tvos": "9.0"
    },
    "source": {
        "git": "https://github.com/czechboy0/Environment.git",
        "tag": "0.1.0"
    },
    "source_files": "Sources/Environment/*.swift"
}

Pin It on Pinterest

Share This