herrmannplatz / env-replace

Will replace all environment variables in a given file

Home Page:https://www.npmjs.com/package/env-replace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

env-replace

npm version Build Status

Replaces all environment variable placeholders in a file

Install

npm install env-replace

Usage

npx env-replace config/*.yaml
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.

About

Will replace all environment variables in a given file

https://www.npmjs.com/package/env-replace

License:MIT License


Languages

Language:JavaScript 100.0%