Socket
Socket
Sign inDemoInstall

addenv-cli

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    addenv-cli

Expands environment variables in command line parameters, then executes the command.


Version published
Maintainers
1
Install size
5.97 kB
Created

Readme

Source

addenv-cli

Expands environment variables in command line parameters, then executes the command.

Installation

npm install addenv-cli --save-dev

Usage

Useful when using npm as a build tool.

package.json

{
	"private": true,
	"devDependencies": {
		"addenv-cli": "^0.1.0"
	},
	"config": {
		"foo": "\"{{bar}}\"",
		"bar": "baz"
	},
	"scripts": {
		"build": "addenv \"echo Foo expands to: {{foo}}\""
	}
}

Command line:

npm run build

Output:

Foo expands to: "baz"

History

  • 0.1.0: Changed syntax to {{var}} to avoid native variable expansion; Added " escaping.
  • 0.0.1: Initial version

Keywords

FAQs

Last updated on 15 May 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc