{"repo":"insomnimus/ps-dotenv","free":true,"listed":false,"github":"https://github.com/insomnimus/ps-dotenv","clone":"git clone https://github.com/insomnimus/ps-dotenv.git","description":"A feature complete and unintrusive direnv for Powershell Core","language":"C#","stars":89,"topics":["powershell","dotenv","csharp","dotnet","module","direnv"],"license":"MIT","category":"cli-tools","readme_excerpt":"[direnv]: https://direnv.net/ PS-Dotenv Dotenv is a feature complete and straightforward [direnv][] alternative for Powershell Core. It also exposes the parser as a separate project you can use in other code. Stability Dotenv is stable and feature complete. the project is currently in maintain-only state. That means unless there's significant demand for a feature, only bug-fixes and other improvements will be added. Features - Complete syntax support including multiline strings and string interpolation. - Works on any platform where Powershell Core runs. - Logging with configurable log levels. - Option to turn the module on and off on the fly. - Option to add/remove custom filenames for auto sourcing of env files. - A subset of bash-like parameter expansion: $val , ${val} , ${val?error} , ${val+replacement} and ${val-default} . - Opt-in safe mode where files have to be explicitly allowd. - Smart loading and unloading env variables: you won't lose the previously set values upon unloading, the \"replaced\" values are remembered and kindly reset to their original values. - It just works the way you'd expect it to. Use Case This module aims to provide the same functionality as [direnv][]. Add Update-Dotenv in your Prompt function and as you navigate directories, Dotenv will source the appropriate env files in the current directory and its parents. Performance Probing for and loading of .env files is I/O bound. The parsing itself takes very little time (less than a millisecond on my","default_branch":null,"files":null,"tree":[],"storefront":"/r/insomnimus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/insomnimus/ps-dotenv/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}