Gathering detailed insights and metrics for grunt-envify
Gathering detailed insights and metrics for grunt-envify
Gathering detailed insights and metrics for grunt-envify
Gathering detailed insights and metrics for grunt-envify
npm install grunt-envify
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (57.01%)
CoffeeScript (42.99%)
Total Downloads
23,471
Last Day
2
Last Week
6
Last Month
32
Last Year
544
2 Stars
16 Commits
2 Forks
3 Watching
1 Branches
2 Contributors
Latest Version
0.1.0
Package Id
grunt-envify@0.1.0
Size
3.72 kB
NPM Version
3.6.0
Node Version
5.6.0
Cumulative downloads
Total Downloads
Last day
0%
2
Compared to previous day
Last week
100%
6
Compared to previous week
Last month
77.8%
32
Compared to previous month
Last year
13.6%
544
Compared to previous year
1
4
Grunt plugin for envify without browserify.
This might not be what you're looking for. If you want to set the variables in process.env, you're looking for grunt-env. If you want to use envify as part of browserify, you want grunt-browserify. This module is only useful if you'd like envify but without the browserify.
This plugin requires Grunt >=0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
1npm install grunt-envify --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
1grunt.loadNpmTasks('grunt-envify');
In your project's Gruntfile, add a section named envify
to the data object passed into grunt.initConfig()
.
1grunt.initConfig({
2 envify: {
3 options: {
4 env: {
5 // Pass custom env to use instead of process.env.
6 }
7 },
8 your_target: {
9 // Target-specific file lists and/or env sandbox go here.
10 }
11 }
12});
Type: Object
Default value: process.env
An object of env variables to use instead of process.env.
In this example, process.env is used.
1grunt.initConfig({ 2 envify: { 3 your_target: { 4 files: { 5 'dest/index.js': ['src/index.js'] 6 } 7 } 8 } 9});
Override process.env with custom variables.
1grunt.initConfig({ 2 envify: { 3 your_target: { 4 options: { 5 env: { 6 NODE_ENV: 'production' 7 } 8 }, 9 files: { 10 'dest/index.js': ['src/index.js'] 11 } 12 } 13 } 14});
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Thanks to the following contributors:
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 1/16 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 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
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-12-30
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