New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

babel-plugin-dev

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-dev

Babel plugin that replaces the "__DEV__" keyword with "process.env.NODE_ENV !== 'production'" for dev- and debug-specific code.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1.3K
-2.19%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-dev

Replaces __DEV__ with process.env.NODE_ENV !== 'production'.

Installation

$ npm install babel-plugin-dev

Usage

.babelrc

{
  "plugins": ["dev"]
}

Via CLI

$ babel --plugins dev script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["dev"]
});

Running the tests

$ git clone https://github.com/Zenwolf/babel-plugin-dev.git
$ cd babel-plugin-dev
$ npm install
$ npm test

Keywords

babel-plugin

FAQs

Package last updated on 04 Feb 2016

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