Gathering detailed insights and metrics for process-envify
Gathering detailed insights and metrics for process-envify
Gathering detailed insights and metrics for process-envify
Gathering detailed insights and metrics for process-envify
npm install process-envify
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
13 Commits
1 Watchers
4 Branches
1 Contributors
Updated on Dec 08, 2022
Latest Version
2.0.0
Package Id
process-envify@2.0.0
Unpacked Size
6.20 kB
Size
2.56 kB
File Count
7
NPM Version
8.1.2
Node Version
16.13.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
A process env helper for injecting strings.
1$ npm i process-envify -D 2# or 3$ pnpm i process-envify -D 4# or 5$ yarn add process-envify -D
1// Input: 2const getBookName = () => process.env.BOOK_NAME;
1// In your build tool (see below): 2import envify from 'process-envify'; 3 4envify({ BOOK_NAME: 'ECMAScript: Up and Running' });
1// Output: 2const getBookName = () => 'ECMAScript: Up and Running';
vite.config.ts
)1import { defineConfig } from 'vite'; 2import envify from 'process-envify'; 3 4export default defineConfig({ 5 define: envify({ BOOK_NAME: 'ECMAScript: Up and Running' }), 6});
vue.config.js
)1const envify = require('process-envify'); 2 3module.exports = { 4 chainWebpack: (config) => { 5 config.plugin('define').tap((args) => { 6 Object.assign( 7 args[0], 8 envify({ BOOK_NAME: 'ECMAScript: Up and Running' }), 9 ); 10 11 return args; 12 }); 13 }, 14};
craco.config.js
)1const webpack = require('webpack'); 2 3module.exports = { 4 webpack: { 5 configure: { 6 plugins: [ 7 new webpack.DefinePlugin( 8 envify({ BOOK_NAME: 'ECMAScript: Up and Running' }), 9 ), 10 ], 11 }, 12 }, 13};
angular.json
) + Angular Builders (extra-webpack.config.js
)1{ 2 "architect": { 3 "serve": { 4 "builder": "@angular-builders/custom-webpack:dev-server", 5 "options": { 6 "customWebpackConfig": { 7 "path": "./extra-webpack.config.js" 8 } 9 } 10 }, 11 "build": { 12 "builder": "@angular-builders/custom-webpack:browser", 13 "options": { 14 "customWebpackConfig": { 15 "path": "./extra-webpack.config.js" 16 } 17 } 18 } 19 } 20}
1const webpack = require('webpack'); 2const envify = require('process-envify'); 3 4module.exports = { 5 plugins: [ 6 new webpack.DefinePlugin( 7 envify({ BOOK_NAME: 'ECMAScript: Up and Running' }), 8 ), 9 ], 10};
rollup.config.js
)1import replace from '@rollup/plugin-replace'; 2import envify from 'process-envify'; 3 4export default { 5 plugins: [ 6 replace( 7 envify({ BOOK_NAME: 'ECMAScript: Up and Running' }), 8 ), 9 ], 10};
webpack.config.js
)1const webpack = require('webpack'); 2const envify = require('process-envify'); 3 4module.exports = { 5 plugins: [ 6 new webpack.DefinePlugin( 7 envify({ BOOK_NAME: 'ECMAScript: Up and Running' }), 8 ), 9 ], 10};
gulpfile.js
)1const gulp = require('gulp'); 2const replaces = require('gulp-replaces'); 3const envify = require('process-envify'); 4 5function defaultTask() { 6 return gulp 7 .src('./src/main.js') 8 .pipe(replaces( 9 envify({ BOOK_NAME: 'ECMAScript: Up and Running' }), 10 )) 11 .pipe(gulp.dest('./dist')); 12} 13 14exports.default = defaultTask;
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
25 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More