Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/busterc/assert-dotenv-cli
:shell: loads and asserts environment settings from dotenv files prior to executing CLI commands
https://github.com/busterc/assert-dotenv-cli
conf config dotenv env environment environment-variables environment-vars environments
Last synced: about 1 month ago
JSON representation
:shell: loads and asserts environment settings from dotenv files prior to executing CLI commands
- Host: GitHub
- URL: https://github.com/busterc/assert-dotenv-cli
- Owner: busterc
- License: isc
- Created: 2016-04-05T19:29:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-25T21:47:48.000Z (over 6 years ago)
- Last Synced: 2024-01-27T18:08:54.799Z (12 months ago)
- Topics: conf, config, dotenv, env, environment, environment-variables, environment-vars, environments
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# assert-dotenv-cli [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]
> loads and asserts environment settings from dotenv files prior to executing CLI commands- See [`assert-dotenv`](https://github.com/busterc/assert-dotenv) for more information about the mechanics and reasoning behind this.
## Install
```sh
$ npm install --global assert-dotenv-cli
```## Usage
```sh
$ assert-dotenv --helpUsage
$ assert-dotenv [options]
Options
--dotenv-file dotenv file to load settings
--assert-file assert file to test settings
--help shows usage help```
## Simple Demo
- ~/app/.env (file contents)
```sh
FTW=For The Win!!!
```- ~/app/assert.env (file contents)
```sh
FTW
```- Examples
```sh
$ cd ~/app# first, without using assert-dotenv-cli
$ env | grep FTW
#
# ^ nada# then, with assert-dotenv-cli
$ assert-dotenv env | grep FTW
# FTW=For The Win!!!
# ^ tada
```## License
ISC © [Buster Collings](http://about.me/buster)
[npm-image]: https://badge.fury.io/js/assert-dotenv-cli.svg
[npm-url]: https://npmjs.org/package/assert-dotenv-cli
[travis-image]: https://travis-ci.org/busterc/assert-dotenv-cli.svg?branch=master
[travis-url]: https://travis-ci.org/busterc/assert-dotenv-cli