Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/herrmannplatz/env-replace
Will replace all environment variables in a given file
https://github.com/herrmannplatz/env-replace
Last synced: 2 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-20T22:02:00.000Z (almost 7 years ago)
- Last Synced: 2024-08-09T09:38:07.465Z (6 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
[![npm version](https://badge.fury.io/js/env-replace.svg)](https://badge.fury.io/js/env-replace) [![Build Status](https://travis-ci.org/herrmannplatz/env-replace.svg?branch=master)](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.