Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More β†’
Socket
Book a DemoInstallSign in
Socket

@start/plugin-env

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@start/plugin-env

πŸ‘” Set environment variable using process.env

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
18
Maintainers
4
Weekly downloads
Β 
Created
Source

πŸ‘” plugin-env

Set environment variable using process.env.

Install

$ yarn add --dev @start/plugin-env

Usage

Signature

env(vars: { [key: string]: any })

Example

import sequence from '@start/plugin-sequence'
import env from '@start/plugin-env'
import webpack from '@start/plugin-webpack'

export task = async () => {
 const { default: webpackConfig } = await import('./webpack-config')

  return sequence(
    env({ NODE_ENV: 'production' }),
    webpack(webpackConfig)
  )
}

Keywords

tasks

FAQs

Package last updated on 14 Aug 2020

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