ulrikstrid / Reenv
Licence: mit
dotenv-cli implementation in native ReasonML providing near-instant startup times
Stars: ✭ 65
Programming Languages
reason
219 projects
Projects that are alternatives of or similar to Reenv
cstruct-go
a fast c-style struct packer & unpacker for golang
Stars: ✭ 28 (-56.92%)
Mutual labels: fast, binary
Apex.Serialization
High performance contract-less binary serializer for .NET
Stars: ✭ 82 (+26.15%)
Mutual labels: fast, binary
Borer
Efficient CBOR and JSON (de)serialization in Scala
Stars: ✭ 131 (+101.54%)
Mutual labels: binary, fast
Pbf
A low-level, lightweight protocol buffers implementation in JavaScript.
Stars: ✭ 618 (+850.77%)
Mutual labels: binary, fast
Binary Exploitation
Good to know, easy to forget information about binaries and their exploitation!
Stars: ✭ 47 (-27.69%)
Mutual labels: binary
Mrthumb
【拇指先生】 a simple easy video thumbnail provider,顺滑的获取视频缩略图,支持本地和网络视频,有问题大胆提Issues
Stars: ✭ 60 (-7.69%)
Mutual labels: fast
Recontainers
[DEPRECATED] ReasonReact utilitary high order components
Stars: ✭ 54 (-16.92%)
Mutual labels: reasonml
Reason App Shell Starter Kit
A simple App Shell starter kit that you can use to get started building your PWA with ReasonML & ReasonReact.
Stars: ✭ 49 (-24.62%)
Mutual labels: reasonml
Building A Serverless Rest Api With Nodejs
A quick and easy guide of how to hook up a single Serverless service with basic MongoDB connection and CRUD interaction.
Stars: ✭ 57 (-12.31%)
Mutual labels: dotenv
Serverless Export Env
Serverless plugin to export environment variables into a .env file
Stars: ✭ 51 (-21.54%)
Mutual labels: dotenv
Gitlab Search
Command line tool to search for contents in GitLab repositories
Stars: ✭ 60 (-7.69%)
Mutual labels: reasonml
Derrick
🙌 Derrick is a clean minimal and fast theme for a personal blog.
Stars: ✭ 51 (-21.54%)
Mutual labels: fast
reenv
dotenv-cli implementation in native ReasonML. The goal is to have feature parity with dotenv but be implemented in Reason. If there is a feature missing please log an issue.
reenv is compiled as a binary and there is no node involved when running it as you can see in the benchmarks section.
Installation
reenv is available on all mainstream desktop platforms (Windows, macOS and Linux) and is installable via npm
.
npm install -g reenv
Usage
NAME
reenv - Read dotenv file(s) and supply them to the program.
SYNOPSIS
reenv [OPTION]... COMMAND [ARGS]...
ARGUMENTS
ARGS
Arguments passed to the command.
COMMAND (required)
Command to run
OPTIONS
-e FILE, --env-file=FILE
The .env files to read variables from.
--help[=FMT] (default=auto)
Show this help in format FMT. The value FMT must be one of `auto',
`pager', `groff' or `plain'. With `auto', the format is `pager` or
`plain' whenever the TERM env var is `dumb' or undefined.
-s FILE, --safe=FILE
The .env file with keys that need to be provided.
--version
Show version information.
EXIT STATUS
reenv exits with the following status:
0 on success.
124 on command line parsing errors.
125 on unexpected internal errors (bugs).
EXAMPLES
To pass flags to the command you are executing, use -- before your
command. reenv -e .env -- ls --all.
BUGS
File an issue at https://github.com/ulrikstrid/reenv/issues
example
reenv -e .env -e .env.dev node index.js
simple benchmarks
Ulriks-MBP:reenv ulrik$ time TEST=hello printenv TEST
hello
real 0m0.004s
user 0m0.001s
sys 0m0.003s
Ulriks-MBP:reenv ulrik$ time reenv -e test/fixtures/.env printenv TEST
hello world!
real 0m0.008s
user 0m0.003s
sys 0m0.003s
Ulriks-MBP:reenv ulrik$ time dotenv -e test/fixtures/.env printenv TEST
hello world!
real 0m0.088s
user 0m0.067s
sys 0m0.018s
Developing:
npm install -g esy pesy
git clone <this-repo>
esy install
esy build
Running Binary:
After building the project, you can run the main binary that is produced.
esy x reenv
Running Tests:
# Runs the "test" command in `package.json`.
esy test
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].