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

process-envify

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

process-envify - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+1
-1
package.json
{
"name": "process-envify",
"version": "1.0.1",
"version": "1.0.2",
"description": "A process env helper for injecting strings.",

@@ -5,0 +5,0 @@ "main": "dist/process-envify.cjs.js",

@@ -10,2 +10,4 @@ # process-envify [![Build Status](https://travis-ci.org/Vanilla-IceCream/process-envify.svg?branch=master)](https://travis-ci.org/Vanilla-IceCream/process-envify) [![Coverage Status](https://coveralls.io/repos/github/Vanilla-IceCream/process-envify/badge.svg?branch=master)](https://coveralls.io/github/Vanilla-IceCream/process-envify?branch=master)

# or
$ pnpm i process-envify -D
# or
$ yarn add process-envify -D

@@ -69,2 +71,58 @@ ```

### CRACO (Create React App Configuration Override, `craco.config.js`)
```js
const webpack = require('webpack');
module.exports = {
webpack: {
configure: {
plugins: [
new webpack.DefinePlugin(
envify({ BOOK_NAME: 'ECMAScript: Up and Running' }),
),
],
},
},
};
```
### Angular CLI (`angular.json`) + Angular Builders (`extra-webpack.config.js`)
```json
{
"architect": {
"serve": {
"builder": "@angular-builders/custom-webpack:dev-server",
"options": {
"customWebpackConfig": {
"path": "./extra-webpack.config.js"
}
}
},
"build": {
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"customWebpackConfig": {
"path": "./extra-webpack.config.js"
}
}
}
}
}
```
```js
const webpack = require('webpack');
const envify = require('process-envify');
module.exports = {
plugins: [
new webpack.DefinePlugin(
envify({ BOOK_NAME: 'ECMAScript: Up and Running' }),
),
],
};
```
### Rollup (`rollup.config.js`)

@@ -127,7 +185,7 @@

type: `Record<string, any>`
Type: `Record<string, any>`
### `opts`
type: `Record<'useImportMeta', boolean>`<br>
Type: `Record<'useImportMeta', boolean>`<br>
Example: `envify(data, { useImportMeta: true });`