Socket
Book a DemoInstallSign in
Socket

gulp-inject-envs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

gulp-inject-envs

Gulp plugin to inject environment variables

unpublished
Source
npmnpm
Version
1.2.2
Version published
Weekly downloads
38
-51.9%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-inject-envs

package version package downloads standard-readme compliant package license make a pull request

Gulp plugin to inject environment variables

Table of Contents

Install

Install the package locally within you project folder with your package manager:

With npm:

npm install gulp-inject-envs

With yarn:

yarn add gulp-inject-envs

With pnpm:

pnpm add gulp-inject-envs

Usage

const injectEnvs = require('gulp-inject-envs')
const env = { foo: 'bar', ping: 'pong' }

gulp.src('**/*.js')
  .pipe(injectEnvs(env)) // set custom prefix with second argument e.g. {prefix: 'CUSTOM___' }
  .pipe(gulp.dest('/'))

And in code:

const foo = '<ENV::foo>'
console.log(foo) // bar

Contributing

Got an idea for a new feature? Found a bug? Contributions are welcome! Please open up an issue or make a pull request.

License

MIT © Tiaan du Plessis

FAQs

Package last updated on 24 Nov 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