2.0.8 • Published 10 days ago

sample-env v2.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
10 days ago

sample-env

About

Effortlessly create sample environment files tailored to your projects with ease. This cli streamlines the process by effortlessly generating environment files, ensuring all sensitive information is excluded saving you the hassle of manually scrubbing secrets.

How to install

  • Install
npm i sample-env -g

Usage

sample-env --env .env --sample .env.example --banner "hello world" --removeComments --prefix REACT_APP_

This command will:

  • take .env file
  • parse its keys and values
  • create banner text at the top of the file
  • only include keys that start with REACT_APP_
  • remove all comments
  • dump all the keys and values into the .env.example file

Supported arguments and commands

The cli takes these optional flags.

  • --env (default .env) - use this option if you want to use a different file name
    • --env .env.dev
  • --sample (default .env.sample) - use this option if you want to use a output file name
    • --sample .env.example
  • --banner - use this option if you want to add a custom banner text at start of file
    • --banner "hello world"
  • --removeComments - use this option if you don't want to include comments in the file
    • --removeComments
  • --prefix - use this option if you want to include only keys that start with a certain prefix
    • --prefix REACT_APP_ or --prefix REACT_APP_ --prefix GATSBY_

Help Usage

sample-env --help
2.0.8

10 days ago

2.0.7

11 days ago

2.0.2

8 months ago

2.0.5

8 months ago

2.0.4

8 months ago

2.0.6

7 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.0.11

8 months ago

1.0.10

9 months ago

1.0.12

8 months ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago