Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-node-env-inline

Package Overview
Dependencies
Maintainers
8
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-node-env-inline - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

lib/index.js

@@ -9,3 +9,3 @@ "use strict";

visitor: {
MemberExpression: function MemberExpression(path) {
MemberExpression(path) {
if (path.matchesPattern("process.env.NODE_ENV")) {

@@ -12,0 +12,0 @@ path.replaceWith(t.valueToNode(process.env.NODE_ENV));

{
"name": "babel-plugin-transform-node-env-inline",
"version": "0.0.1",
"version": "0.0.2",
"description": "Inline the `NODE_ENV` environment variable and evaluate it if possible",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/babel/babili#readme",

@@ -18,3 +18,3 @@ # babel-plugin-transform-node-env-inline

```sh
$ NODE_ENV=development babel in.js --plugins transform-node-env-inline
NODE_ENV=development babel in.js --plugins transform-node-env-inline
```

@@ -30,3 +30,3 @@

```sh
$ npm install babel-plugin-transform-node-env-inline
npm install babel-plugin-transform-node-env-inline
```

@@ -49,3 +49,3 @@

```sh
$ babel --plugins transform-node-env-inline script.js
babel --plugins transform-node-env-inline script.js
```

@@ -52,0 +52,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc