Skip to content

Commit

Permalink
chore: update readme and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
brodo committed Nov 4, 2022
1 parent 0324046 commit f9ba425
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "json_env"
version = "1.2.1"
version = "1.3.0"
edition = "2021"
license = "Apache-2.0"
description ="Loads an environment variables from a JSON file (`.env.json` per default) and starts a subprocess with them."
description ="Loads an environment variables from JSON files (`.env.json` per default) and starts a subprocess with them."
homepage = "https://github.com/brodo/json_env"
repository = "https://github.com/brodo/json_env.git"
readme = "Readme.md"
Expand Down
6 changes: 6 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# json_env

> **Environment Variable Loader**
[![npmjs.com](https://img.shields.io/npm/v/@brodo/json_env?)](https://www.npmjs.com/package/@brodo/json_env)
[![Crates.io](https://img.shields.io/crates/v/json_env)](https://crates.io/crates/json_env) [![License](https://img.shields.io/badge/license-Apache%202.0-blue)](LICENSE)

`json_env` is [dotenv](https://github.com/motdotla/dotenv), but with JSON.
It loads an environment variables from a JSON file (`.env.json` per default) and starts a subprocess with them.
Storing configuration in the environment separate from code is based on [The Twelve-Factor](http://12factor.net/config) App methodology.
Expand Down Expand Up @@ -146,6 +151,7 @@ my_settings.json
"PASSWORD": "hunter2"
}
```
Use multiple `-c` flags to add several config files:

```shell
$ json_env -c defaults.json -c my_settings.json env
Expand Down

0 comments on commit f9ba425

Please sign in to comment.