Installations
npm install grunt-mout
Score
28.9
Supply Chain
82.5
Quality
65.7
Maintenance
25
Vulnerability
60
License
Releases
Unable to fetch releases
Developer
jmdobry
Developer Guide
Module System
Unable to determine the module system for this package.
Min. Node Version
>= 0.8.0
Typescript Support
No
Node Version
NPM Version
2.0.0-alpha-5
Statistics
7 Commits
1 Forks
1 Watching
1 Branches
1 Contributors
Updated on 28 Jan 2023
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
12,520
Last day
-70%
3
Compared to previous day
Last week
37.3%
70
Compared to previous week
Last month
184.4%
182
Compared to previous month
Last year
21.6%
3,076
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Peer Dependencies
1
Unmaintained
grunt-mout
Grunt task for creating custom browserify builds of mout.js.
Getting Started
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-mout --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
1grunt.loadNpmTasks('grunt-mout');
The "mout" task
Overview
In your project's Gruntfile, add a section named mout
to the data object passed into grunt.initConfig()
.
1grunt.initConfig({
2 mout: {
3 dist: {
4 options: {
5 modules: [
6 'mout/array',
7 'mout/object'
8 ]
9 },
10 dest: './.tmp/mout.js'
11 }
12 }
13});
Options
dest
Type: String
Default value: './.tmp/mout.js'
Destination file.
options.modules
Type: Array
Default value: null
List of mout.js modules to include. Omit this option to include all of them.
options.debug
Type: Boolean
Default value: false
Whether to include an inline source map at the bottom of the generated mout
bundle.
options.spy
Type: Boolean
Default value: false
Whether to augment the generated mout
bundle with methods for recording and printing your app's usage of mout. Use this
functionality to learn what mout
modules your app uses, so you can generate a slimmer mout
build. Methods added to mout
:
mout.callCount
An object containing the call counts.
mout.reset()
Reset call counts to zero.
mout.usage()
Return an array of the modules that were called. This array will be in the format required for the options.modules
option of the grunt task.
Usage Examples
Default Options
Using the default options, all mout.js modules will be included and the bundle will be written to ./.tmp/mout.js
.
1grunt.initConfig({ 2 mout: { 3 dist: {} 4 } 5});
Custom Options
Override the destination path or specify a whitelist of mout.js modules to include (their dependencies will automatically be included) .
1grunt.initConfig({
2 mout: {
3 dist: {
4 options: {
5 modules: [
6 'mout/array',
7 'mout/object',
8 'mout/string/typecast',
9 'mout/time/convert'
10 ]
11 },
12 dest: './.tmp/mout.js'
13 }
14 }
15});
Contributing
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.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2024-11-18
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