{"id":15698992,"url":"https://github.com/pgilad/gulp-check-constants","last_synced_at":"2025-03-30T14:25:24.771Z","repository":{"id":22052716,"uuid":"25381463","full_name":"pgilad/gulp-check-constants","owner":"pgilad","description":"Find numbers that should be extracted to a declaration statement","archived":false,"fork":false,"pushed_at":"2015-05-22T17:26:33.000Z","size":212,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T18:44:31.001Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgilad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-17T23:41:54.000Z","updated_at":"2015-05-08T19:32:29.000Z","dependencies_parsed_at":"2022-08-22T17:40:12.219Z","dependency_job_id":null,"html_url":"https://github.com/pgilad/gulp-check-constants","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgilad%2Fgulp-check-constants","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgilad%2Fgulp-check-constants/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgilad%2Fgulp-check-constants/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgilad%2Fgulp-check-constants/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgilad","download_url":"https://codeload.github.com/pgilad/gulp-check-constants/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246186930,"owners_count":20737457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T19:37:16.505Z","updated_at":"2025-03-30T14:25:24.747Z","avatar_url":"https://github.com/pgilad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [gulp](https://github.com/wearefractal/gulp)-check-constants\n\u003e Find numbers that should be extracted to a declaration statement using [check-constants](https://github.com/pgilad/check-constants)\n\n[![NPM Version](http://img.shields.io/npm/v/gulp-check-constants.svg?style=flat)](https://npmjs.org/package/gulp-check-constants)\n[![NPM Downloads](http://img.shields.io/npm/dm/gulp-check-constants.svg?style=flat)](https://npmjs.org/package/gulp-check-constants)\n[![Build Status](http://img.shields.io/travis/pgilad/gulp-check-constants.svg?style=flat)](https://travis-ci.org/pgilad/gulp-check-constants)\n\n*Issues with the output should be reported on the check-constants [issue tracker](https://github.com/pgilad/check-constants/issues).*\n\n## Install\n\nInstall with [npm](https://npmjs.org/package/gulp-check-constants)\n\n```bash\n$ npm install --save-dev gulp-check-constants\n```\n\n## Usage\n\n```js\nvar gulp = require('gulp');\nvar checkConstants = require('gulp-check-constants');\n\n//example with basic css copying\ngulp.task('js', function() {\n    gulp.src('./src/js/**/*.js')\n        .pipe(checkConstants())\n        .pipe(gulp.dest('./public/js'));\n});\n\n//example with custom options\ngulp.task('js', function() {\n    gulp.src('./src/js/**/*.js')\n        .pipe(checkConstants({\n                enforceConst: true,\n                ignore: [0, 1, 2, 3, 10]\n        }))\n        .pipe(gulp.dest('./public/js'));\n});\n```\n\n## API\n\nSee the `check-constants` [Options](https://github.com/pgilad/check-constants#api)\nexcept for `file` which is handled for you.\n\n## License\n\nMIT @[Gilad Peleg](http://giladpeleg.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgilad%2Fgulp-check-constants","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgilad%2Fgulp-check-constants","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgilad%2Fgulp-check-constants/lists"}