Gathering detailed insights and metrics for grunt-babel-helpers
Gathering detailed insights and metrics for grunt-babel-helpers
Gathering detailed insights and metrics for grunt-babel-helpers
Gathering detailed insights and metrics for grunt-babel-helpers
Consolidates Babel helper functions generated in a typical Browserify workflow.
npm install grunt-babel-helpers
Typescript
Module System
Min. Node Version
Node Version
NPM Version
43.9
Supply Chain
55.8
Quality
68.3
Maintenance
25
Vulnerability
97
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
4 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Mar 05, 2018
Latest Version
1.0.1
Package Id
grunt-babel-helpers@1.0.1
Size
2.56 kB
NPM Version
3.9.5
Node Version
6.2.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
3
1
5
Consolidates Babel helper functions generated in a typical Browserify workflow.
This is a Grunt plugin to help consolidate the numerous and often duplicated Babel helper functions that are created in a typical Browserify workflow.
There are several other modules/plugins out there that do similar things, however they typically "require" a massive amount of dependencies that ultimately bloat the final output.
This plugin simply aims to find all the helper functions and move them to the top of the file, inside the UMD wrapper if one exists.
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-babel-helpers --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
1grunt.loadNpmTasks('grunt-babel-helpers');
Below are some basic options to override the default behavior of this plugin.
Type: Array
Function
Default: Predefined list from the babel-helpers module.
An array of Babel helper functions that should be consolidated. Note: none of the Babel helper function should be prefixed with an underscore (_).
Type: Number
'after'
'before'
'replace'
Function
Default: 'before'
The character index to use for injecting the consolidated helpers.
This can be either a numeric value, a string value containing: 'after'
,
'before'
or 'replace'
or a function that returns one of those values.
If the value is 'after'
, 'before'
or 'replace'
then it will attempt to
automatically determine the index position based on the above marker's
position.
If the value passed is invalid or if a position could not be determined
from the provided marker, then this option's value will default to 0
.
Type: RegExp
String
Function
Default: /var\s+define,\s*module,\s*exports;?/
The marker that determines where to inject the consolidated helpers.
Type: String
Function
Default: '_'
The prefix prepended to babel-helper functions.
1grunt.initConfig({
2 babelHelpers: {
3 dist: {
4 src: 'dist/build.js'
5 }
6 }
7});
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/4 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
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