https://github.com/herrmannplatz/env-replace
Will replace all environment variables in a given file
https://github.com/herrmannplatz/env-replace
Last synced: 3 months ago
JSON representation
Will replace all environment variables in a given file
- Host: GitHub
- URL: https://github.com/herrmannplatz/env-replace
- Owner: herrmannplatz
- License: mit
- Created: 2017-11-28T19:36:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-20T22:02:00.000Z (about 7 years ago)
- Last Synced: 2025-04-05T11:34:22.469Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/env-replace
- Size: 52.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# env-replace
[](https://badge.fury.io/js/env-replace) [](https://travis-ci.org/herrmannplatz/env-replace)
> Replaces all environment variable placeholders in a file
## Install
```shell
npm install env-replace
```## Usage
```shell
npx env-replace config/*.yaml
``````javascript
const envReplace = require('env-replace')envReplace('config/*.yaml')
```## API
### envReplace(pattern)
Replaces environment variable placeholders in any file that matches the pattern.
#### pattern
Type: `string`
Glob that defines which files are processed.