{"id":17816452,"url":"https://github.com/zebrajaeger/gulp-simple-env","last_synced_at":"2025-08-21T15:43:13.827Z","repository":{"id":57170466,"uuid":"168826139","full_name":"zebrajaeger/gulp-simple-env","owner":"zebrajaeger","description":"Simple Environment Plugin for Gulp","archived":false,"fork":false,"pushed_at":"2019-02-02T12:52:10.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T00:44:51.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zebrajaeger.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-02T11:45:58.000Z","updated_at":"2019-02-02T12:52:12.000Z","dependencies_parsed_at":"2022-08-27T12:02:05.055Z","dependency_job_id":null,"html_url":"https://github.com/zebrajaeger/gulp-simple-env","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zebrajaeger/gulp-simple-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fgulp-simple-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fgulp-simple-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fgulp-simple-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fgulp-simple-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zebrajaeger","download_url":"https://codeload.github.com/zebrajaeger/gulp-simple-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fgulp-simple-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271502601,"owners_count":24770914,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-27T16:38:10.530Z","updated_at":"2025-08-21T15:43:13.688Z","avatar_url":"https://github.com/zebrajaeger.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-simple-env\n\n[![NPM version][npm-image]][npm-url]\n[![License][license-image]][license-url]\n[![Size][size-image]][size-url]\n\n## Define your environments\nI.E. we define two environments: 'foo' and 'bar'.\n\n    const e = require('@zebrajaeger/gulp-simple-env')({\n        env: ['foo', 'bar']\n    });\n\nYou can define as much environments as you want.\n\nHint:\n\nFor js-conform naming, the env-names are camel-cased. 'my-great-env' becomes to isMyGreatEnv(...). \nThe command line name is unchanged: gulp --my-great-env\nFor the replacement strategy, take a look at https://www.npmjs.com/package/camelcase \n\n## Activate environment through command line argument(s)\n\n    gulp --foo\n    gulp --bar\n    gulp --foo --bar\n\n## Generic: Check if a specific environment is (not) set\n\n    e.isFoo(): true or false \n    e.isNotFoo(): true or false\n    e.isBar(): true or false \n    e.isNotBar(): true or false\n\n## Gulp: Execute tasks dependent from environment\n\n    gulp.src(...).pipe( e.isFoo(...) ).dest(...);\n    gulp.src(...).pipe( e.isNotFoo(...) ).dest(...);\n    gulp.src(...).pipe( e.isBar(...) ).dest(...);\n    gulp.src(...).pipe( e.isNotBar(...) ).dest(...);\n\nAs an alternative you can provide a trueStream and a falseStream\n\n    .pipe( e.isFoo(uglify(), prettify()) )\n\n## Your example gulpfile.js\n\n    const g = require('gulp');\n    const e = require('@zebrajaeger/gulp-simple-env')({env: ['foo', 'bar']});\n    \n    const print = require('gulp-print').default;\n    \n    g.task('default', cb =\u003e {\n        return g\n            .src('*.js')\n            .pipe(e.isFoo(print()))\n    });\n\n[npm-image]: https://img.shields.io/npm/v/@zebrajaeger/gulp-simple-env.svg?style=flat\n[npm-url]: https://npmjs.org/@zebrajaeger/gulp-simple-env\n\n[license-image]: https://img.shields.io/github/license/zebrajaeger/gulp-simple-env.svg?style=flat\n[license-url]: https://github.com/zebrajaeger/gulp-simple-env/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/github/size/zebrajaeger/gulp-simple-env/index.js.svg?style=flat\n[size-url]: https://github.com/zebrajaeger/gulp-simple-env/blob/master/index.js","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebrajaeger%2Fgulp-simple-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzebrajaeger%2Fgulp-simple-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebrajaeger%2Fgulp-simple-env/lists"}