https://github.com/lightsofapollo/envfile
Very simple node utility to read .env files (like foreman)
https://github.com/lightsofapollo/envfile
Last synced: 8 months ago
JSON representation
Very simple node utility to read .env files (like foreman)
- Host: GitHub
- URL: https://github.com/lightsofapollo/envfile
- Owner: lightsofapollo
- License: other
- Created: 2013-11-25T19:24:15.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-25T19:53:10.000Z (over 12 years ago)
- Last Synced: 2024-12-27T15:12:50.786Z (over 1 year ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# envfile
Very simple node utility to read .env files (like foreman).
WARNING: This is not a true env parser it will not deal with quotation
or other fancy things. Additionally it expects every environment
variable to be on its own line.
## Usage
some.env:
```
FOO=true
MYSQL=1
```
```js
var envfile = require('envfile'),
fs = require('fs');
envfile.parse(fs.readFileSync('some.env'));
// => { FOO: 'true', MYSQL: '1' }
```