Swiftpack.co - ChimeHQ/ProcessEnv as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by ChimeHQ.
ChimeHQ/ProcessEnv 1.0.0
Capture the shell environment of a Foundation app
⭐️ 24
🕓 35 weeks ago
.package(url: "https://github.com/ChimeHQ/ProcessEnv.git", from: "1.0.0")

Build Status Platforms


ProcessEnv is a small library for capturing a user's shell configuration. This is very handy for launching Process instances with the same configuration. It also contains a few niceties for working with Process.


Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/ChimeHQ/ProcessEnv", branch: "main")


The bulk of code is in the form of extensions on ProcessInfo, for accessing various environment variables. A single [String : String] dictionary of the user's environment is available as the userEnvironment property.


ProcessInfo.processInfo.path // $PATH

Contributing and Collaboration

I would love to hear from you! Issues or pull requests work great. A Discord server is also available for live help, but I have a strong bias towards answering in the form of documentation.

I prefer collaboration, and would love to find ways to work together if you have a similar project.

I prefer indentation with tabs for improved accessibility. But, I'd rather you use the system you want and make a PR than hesitate because of whitespace.

By participating in this project you agree to abide by the Contributor Code of Conduct.


Stars: 24
Last commit: 3 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

35 weeks ago
  • Adding sandbox detection API, which can be very relevant for this kind of work
  • Finally releasing a 1.0. It's time.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics