{"id":21760286,"url":"https://github.com/ulrikstrid/reenv","last_synced_at":"2025-06-20T14:32:42.664Z","repository":{"id":85853801,"uuid":"172393309","full_name":"ulrikstrid/reenv","owner":"ulrikstrid","description":"dotenv-cli implementation in native ReasonML providing near-instant startup times","archived":false,"fork":false,"pushed_at":"2021-01-19T21:43:54.000Z","size":172,"stargazers_count":65,"open_issues_count":4,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T21:09:53.292Z","etag":null,"topics":["binary","dotenv","dotenv-safe","fast","reasonml"],"latest_commit_sha":null,"homepage":"","language":"Reason","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ulrikstrid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-24T21:37:38.000Z","updated_at":"2024-06-04T21:29:52.000Z","dependencies_parsed_at":"2023-03-11T19:15:54.347Z","dependency_job_id":null,"html_url":"https://github.com/ulrikstrid/reenv","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ulrikstrid/reenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulrikstrid%2Freenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulrikstrid%2Freenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulrikstrid%2Freenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulrikstrid%2Freenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ulrikstrid","download_url":"https://codeload.github.com/ulrikstrid/reenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulrikstrid%2Freenv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260961673,"owners_count":23089264,"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":["binary","dotenv","dotenv-safe","fast","reasonml"],"created_at":"2024-11-26T11:38:57.811Z","updated_at":"2025-06-20T14:32:37.653Z","avatar_url":"https://github.com/ulrikstrid.png","language":"Reason","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reenv\n\n[![Build Status](https://dev.azure.com/strid/reenv/_apis/build/status/ulrikstrid.reenv?branchName=master)](https://dev.azure.com/strid/reenv/_build/latest?definitionId=27\u0026branchName=master)\n\n[dotenv-cli](https://github.com/entropitor/dotenv-cli) implementation in native ReasonML. The goal is to have feature parity with [dotenv](https://github.com/motdotla/dotenv) but be implemented in Reason. If there is a feature missing please log an issue.\n\nreenv is compiled as a binary and there is no node involved when running it as you can see in the [benchmarks section](#simple-benchmarks).\n\n## Installation\n\nreenv is available on all mainstream desktop platforms (Windows, macOS and Linux) and is installable via `npm`.\n\n`npm install -g reenv`\n\n## Usage\n\n```\nNAME\n       reenv - Read dotenv file(s) and supply them to the program.\n\nSYNOPSIS\n       reenv [OPTION]... COMMAND [ARGS]...\n\nARGUMENTS\n       ARGS\n           Arguments passed to the command.\n\n       COMMAND (required)\n           Command to run\n\nOPTIONS\n       -e FILE, --env-file=FILE\n           The .env files to read variables from.\n\n       --help[=FMT] (default=auto)\n           Show this help in format FMT. The value FMT must be one of `auto',\n           `pager', `groff' or `plain'. With `auto', the format is `pager` or\n           `plain' whenever the TERM env var is `dumb' or undefined.\n\n       -s FILE, --safe=FILE\n           The .env file with keys that need to be provided.\n\n       --version\n           Show version information.\n\nEXIT STATUS\n       reenv exits with the following status:\n\n       0   on success.\n\n       124 on command line parsing errors.\n\n       125 on unexpected internal errors (bugs).\n\nEXAMPLES\n       To pass flags to the command you are executing, use -- before your\n       command. reenv -e .env -- ls --all.\n\nBUGS\n       File an issue at https://github.com/ulrikstrid/reenv/issues\n```\n\n### example\n\n`reenv -e .env -e .env.dev node index.js`\n\n## simple benchmarks\n\n```\nUlriks-MBP:reenv ulrik$ time TEST=hello printenv TEST\nhello\n\nreal\t0m0.004s\nuser\t0m0.001s\nsys\t0m0.003s\nUlriks-MBP:reenv ulrik$ time reenv -e test/fixtures/.env printenv TEST\nhello world!\n\nreal\t0m0.008s\nuser\t0m0.003s\nsys\t0m0.003s\nUlriks-MBP:reenv ulrik$ time dotenv -e test/fixtures/.env printenv TEST\nhello world!\n\nreal\t0m0.088s\nuser\t0m0.067s\nsys\t0m0.018s\n```\n\n## Developing:\n\n```\nnpm install -g esy pesy\ngit clone \u003cthis-repo\u003e\nesy install\nesy build\n```\n\n### Running Binary:\n\nAfter building the project, you can run the main binary that is produced.\n\n```\nesy x reenv\n```\n\n### Running Tests:\n\n```\n# Runs the \"test\" command in `package.json`.\nesy test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulrikstrid%2Freenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulrikstrid%2Freenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulrikstrid%2Freenv/lists"}