šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

env-template-processor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-template-processor

A simple template processor that replaces environment variables in files

1.0.0
latest
npm
Version published
Weekly downloads
8
14.29%
Maintainers
1
Weekly downloads
Ā 
Created
Source

envtemplate

A simple template processor that replaces environment variables in files.

Usage

SITE_NAME="Site name" KEYWORDS="keyword1 keyword2" OTHER_VARIABLE="3123" npx envtemplate config.toml.template config.toml

The package will replace all occurrences of ${VARIABLE_NAME} in the template file with the corresponding environment variable value.

Example

Template file (config.toml.template):

site_name = "${SITE_NAME}"
keywords = "${KEYWORDS}"
other_variable = "${OTHER_VARIABLE}"

After running the command, the output file (config.toml) will contain:

site_name = "Site name"
keywords = "keyword1 keyword2"
other_variable = "3123"

License

ISC

Keywords

template

FAQs

Package last updated on 21 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts