{"id":13995219,"url":"https://github.com/ChimeHQ/ProcessEnv","last_synced_at":"2025-07-22T21:32:22.440Z","repository":{"id":62107931,"uuid":"346321605","full_name":"ChimeHQ/ProcessEnv","owner":"ChimeHQ","description":"Capture the shell environment of a Foundation app","archived":false,"fork":false,"pushed_at":"2024-04-03T15:23:12.000Z","size":52,"stargazers_count":24,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-11-29T01:25:26.474Z","etag":null,"topics":["appkit","cocoa","foundation","shell","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChimeHQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["mattmassicotte"]}},"created_at":"2021-03-10T10:46:14.000Z","updated_at":"2024-11-02T09:26:13.000Z","dependencies_parsed_at":"2023-11-14T19:25:47.046Z","dependency_job_id":"25acef79-bfdf-4c1e-ae9c-2e78a7074cf8","html_url":"https://github.com/ChimeHQ/ProcessEnv","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"29487b6581bb785c372c611c943541ef4309d051"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChimeHQ%2FProcessEnv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChimeHQ%2FProcessEnv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChimeHQ%2FProcessEnv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChimeHQ%2FProcessEnv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChimeHQ","download_url":"https://codeload.github.com/ChimeHQ/ProcessEnv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227177821,"owners_count":17743172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appkit","cocoa","foundation","shell","swift"],"created_at":"2024-08-09T14:03:18.613Z","updated_at":"2025-07-22T21:32:22.430Z","avatar_url":"https://github.com/ChimeHQ.png","language":"Swift","funding_links":["https://github.com/sponsors/mattmassicotte"],"categories":["Swift"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![Build Status][build status badge]][build status]\n[![Platforms][platforms badge]][platforms]\n[![Documentation][documentation badge]][documentation]\n[![Matrix][matrix badge]][matrix]\n\n\u003c/div\u003e\n\n# ProcessEnv\n\nProcessEnv 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`.\n\n## Integration\n\nSwift Package Manager:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/ChimeHQ/ProcessEnv\", branch: \"main\")\n]\n```\n\n## Extensions\n\nThe 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.\n\n```swift\nProcessInfo.processInfo.userEnvironment\n\nProcessInfo.processInfo.path // $PATH\nProcessInfo.processInfo.homePath\nProcessInfo.processInfo.shellExecutablePath\n```\n\n## Contributing and Collaboration\n\nI would love to hear from you! Issues or pull requests work great. Both a [Matrix space][matrix] and [Discord][discord] are available for live help, but I have a strong bias towards answering in the form of documentation. You can also find me on [the web](https://www.massicotte.org).\n\nI prefer collaboration, and would love to find ways to work together if you have a similar project.\n\nI 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.\n\nBy participating in this project you agree to abide by the [Contributor Code of Conduct](CODE_OF_CONDUCT.md).\n\n[build status]: https://github.com/ChimeHQ/ProcessEnv/actions\n[build status badge]: https://github.com/ChimeHQ/ProcessEnv/workflows/CI/badge.svg\n[platforms]: https://swiftpackageindex.com/ChimeHQ/ProcessEnv\n[platforms badge]: https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FChimeHQ%2FProcessEnv%2Fbadge%3Ftype%3Dplatforms\n[documentation]: https://swiftpackageindex.com/ChimeHQ/ProcessEnv/main/documentation\n[documentation badge]: https://img.shields.io/badge/Documentation-DocC-blue\n[matrix]: https://matrix.to/#/%23chimehq%3Amatrix.org\n[matrix badge]: https://img.shields.io/matrix/chimehq%3Amatrix.org?label=Matrix\n[discord]: https://discord.gg/esFpX6sErJ\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChimeHQ%2FProcessEnv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FChimeHQ%2FProcessEnv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChimeHQ%2FProcessEnv/lists"}