gcc

gulp-check-constants

Find numbers that should be extracted to a declaration statement

Showing:

Popularity

Downloads/wk

9

GitHub Stars

1

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

4

Size (min+gzip)

49.9KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

gulp-check-constants

Find numbers that should be extracted to a declaration statement using check-constants

NPM Version NPM Downloads Build Status

Issues with the output should be reported on the check-constants issue tracker.

Install

Install with npm

$ npm install --save-dev gulp-check-constants

Usage

var gulp = require('gulp');
var checkConstants = require('gulp-check-constants');

//example with basic css copying
gulp.task('js', function() {
    gulp.src('./src/js/**/*.js')
        .pipe(checkConstants())
        .pipe(gulp.dest('./public/js'));
});

//example with custom options
gulp.task('js', function() {
    gulp.src('./src/js/**/*.js')
        .pipe(checkConstants({
                enforceConst: true,
                ignore: [0, 1, 2, 3, 10]
        }))
        .pipe(gulp.dest('./public/js'));
});

API

See the check-constants Options except for file which is handled for you.

License

MIT @Gilad Peleg

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100