envilder 0.2.1 โ†’ 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +20 -18
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,18 +1,18 @@
1
- # ๐ŸŒฑ Envilder
1
+ ![image](https://github.com/user-attachments/assets/6f962001-911a-41be-8ebf-80f66bf6582f)
2
2
 
3
3
  `Envilder` is a CLI tool to manage AWS SSM Parameter Store parameters and automatically generate the required `.env` file. This tool simplifies environment variable management for projects, avoiding manual updates and ensuring consistency across environments.
4
4
 
5
- ## โœจ Features
5
+ # โœจ Features
6
6
 
7
7
  - ๐Ÿ”’ Fetch parameters securely from AWS SSM Parameter Store.
8
8
  - โšก Automatically generates a `.env` file with specified parameters.
9
- - ๐Ÿ›ก๏ธ Handles both encrypted and unencrypted SSM parameters.
9
+ - ๐Ÿ›ก๏ธ Handles encrypted (currently only supported) SSM parameters.
10
10
  - ๐Ÿชถ Lightweight and simple to use.
11
11
 
12
- ## Prerequisites
12
+ # Prerequisites
13
13
  Before using `Envilder`, ensure that you have the AWS CLI installed and properly configured on your local machine. This configuration is required for `Envilder` to access and manage parameters in AWS SSM.
14
14
 
15
- ### AWS CLI Installation & Configuration
15
+ ## AWS CLI Installation & Configuration
16
16
  1. Install the AWS CLI by following the instructions [here](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html).
17
17
  2. After installation, configure the AWS CLI using the following command:
18
18
 
@@ -28,14 +28,14 @@ Before using `Envilder`, ensure that you have the AWS CLI installed and properly
28
28
 
29
29
  Make sure that the AWS credentials you're using have the appropriate permissions to access the SSM Parameter Store in your AWS account.
30
30
 
31
- ## Installation
31
+ # Installation
32
32
  You can install `Envilder` globally using yarn. This will allow you to use the `envilder` command from any directory on your system.
33
33
 
34
34
  ```bash
35
35
  yarn global add envilder
36
36
  ```
37
37
 
38
- ## ๐Ÿ“ฆ Installation
38
+ # ๐Ÿ“ฆ Installation
39
39
 
40
40
  You can install **envilder** globally or locally using npm:
41
41
 
@@ -43,21 +43,21 @@ You can install **envilder** globally or locally using npm:
43
43
  npm install -g envilder
44
44
  ```
45
45
 
46
- ## ๐Ÿš€ Usage
46
+ # ๐Ÿš€ Usage
47
47
 
48
48
  Envilder requires two arguments:
49
49
 
50
50
  - `--map <path>`: Path to a JSON file mapping environment variable names to SSM parameters.
51
51
  - `--envfile <path>`: Path where the generated .env file will be saved.
52
52
 
53
- ## ๐Ÿ”ง Example
53
+ # ๐Ÿ”ง Example
54
54
 
55
55
  1. Create a mapping file `param_map.json`:
56
56
 
57
57
  ```json
58
58
  {
59
- "NEXT_PUBLIC_CREDENTIAL_EMAIL": "/path/to/ssm/email",
60
- "NEXT_PUBLIC_CREDENTIAL_PASSWORD": "/path/to/ssm/password"
59
+ "SECRET_TOKEN": "/path/to/ssm/token",
60
+ "SECRET_KEY": "/path/to/ssm/password"
61
61
  }
62
62
  ```
63
63
 
@@ -69,25 +69,27 @@ Envilder requires two arguments:
69
69
 
70
70
  3. The `.env` file will be generated in the specified location.
71
71
 
72
- ## ๐Ÿ“‚ Sample `.env` Output
72
+ # ๐Ÿ“‚ Sample `.env` Output
73
73
 
74
74
  ```makefile
75
- NEXT_PUBLIC_CREDENTIAL_EMAIL=mockedEmail@example.com
76
- NEXT_PUBLIC_CREDENTIAL_PASSWORD=mockedPassword
75
+ SECRET_TOKEN=mockedEmail@example.com
76
+ SECRET_KEY=mockedPassword
77
77
  ```
78
78
 
79
- ## ๐Ÿงช Running Tests
79
+ # ๐Ÿงช Running Tests
80
80
 
81
- To run the tests with coverage:
81
+ To run the tests with coverage:
82
82
 
83
83
  ```bash
84
84
  yarn test
85
85
  ```
86
86
 
87
- ## ๐Ÿ“ License
87
+ Here you can see the current coverage report: https://macalbert.github.io/envilder/
88
+
89
+ # ๐Ÿ“ License
88
90
 
89
91
  This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.
90
92
 
91
- ## ๐Ÿ™Œ Contributing
93
+ # ๐Ÿ™Œ Contributing
92
94
 
93
95
  Contributions are welcome! Feel free to submit issues and pull requests.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "envilder",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "A CLI tool to generate .env files from AWS SSM parameters",
5
5
  "exports": {
6
6
  ".": {