{"_id":"gulp-mode","_rev":"7-cb857cc90a11939d377c41389f0d5b89","name":"gulp-mode","description":"A gulp plugin for identifying biuld mode.","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"gulp-mode","version":"1.0.0","description":"A gulp plugin for identifying biuld mode.","main":"index.js","scripts":{"test":"gulp test; cat ./test/junitresults.xml"},"repository":{"type":"git","url":"https://github.com/CODEYA/node-gulp-mode.git"},"keywords":["gulp","NODE_ENV","process.env.NODE_ENV","production","development"],"author":{"name":"CODEYA"},"license":"MIT","bugs":{"url":"https://github.com/CODEYA/node-gulp-mode/issues"},"dependencies":{"gulp-util":"^3.0.6"},"devDependencies":{"gulp":"^3.9.0","gulp-jasmine":"^2.0.1","gulp-load-plugins":"^1.0.0-rc.1","jasmine-reporters":"^2.0.7"},"gitHead":"1d101b3a84d21d8c912a7f7b447dffa334a9a8ea","homepage":"https://github.com/CODEYA/node-gulp-mode","_id":"gulp-mode@1.0.0","_shasum":"bdaa492d134a2be901a4121b450726e0386be24a","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"eiichiro-takahashi","email":"eiichiro@takahashike.jp"},"maintainers":[{"name":"eiichiro-takahashi","email":"eiichiro@takahashike.jp"}],"dist":{"shasum":"bdaa492d134a2be901a4121b450726e0386be24a","tarball":"https://registry.npmjs.org/gulp-mode/-/gulp-mode-1.0.0.tgz","integrity":"sha512-iPKGWfRXM0ONHysC1x0aQ8iGGvOTPMfyr5c3YhLn6E0zpaf42rvWzhe8yDGzbQFROW2IgwUOoEAYwdUySRiY3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCXsbTUKgI3FuMpGM1e+JLy8MCZCJemdUbJO8SyMMwW7gIgfl+9gsWsw5bkb6nkYU6Fr3wigpE/+1bqWazcclx+0EE="}]},"directories":{}},"1.0.1":{"name":"gulp-mode","version":"1.0.1","description":"A gulp plugin for identifying biuld mode.","main":"index.js","scripts":{"test":"gulp test; cat ./test/junitresults.xml"},"repository":{"type":"git","url":"https://github.com/CODEYA/node-gulp-mode.git"},"keywords":["gulp","NODE_ENV","process.env.NODE_ENV","production","development"],"author":{"name":"CODEYA"},"license":"MIT","bugs":{"url":"https://github.com/CODEYA/node-gulp-mode/issues"},"dependencies":{"gulp-util":"^3.0.6"},"devDependencies":{"gulp":"^3.9.0","gulp-jasmine":"^2.0.1","gulp-load-plugins":"^1.0.0-rc.1","jasmine-reporters":"^2.0.7"},"gitHead":"f9e6b6d0834e1cb196e5bcf05c87e2d89e2fe1ff","homepage":"https://github.com/CODEYA/node-gulp-mode","_id":"gulp-mode@1.0.1","_shasum":"9443b657519dcbdde2d6b5ac9cee9c5b232aa783","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"eiichiro-takahashi","email":"eiichiro@takahashike.jp"},"maintainers":[{"name":"eiichiro-takahashi","email":"eiichiro@takahashike.jp"}],"dist":{"shasum":"9443b657519dcbdde2d6b5ac9cee9c5b232aa783","tarball":"https://registry.npmjs.org/gulp-mode/-/gulp-mode-1.0.1.tgz","integrity":"sha512-f6kIHPonnWhkpce5M7wTH9sEyh+e3ocyGX4CjzT7xr0n8CrQa0Njl+aMENuJ1jJtr4QrX8upUvpwoA5uf0YvAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYLBPWFSnj7a4sw0htp0uKFgeXsJgzXyf4aeeDCKEY+QIgY07dYpmaNzAXW2dRFt8ZoZW4ZgaHY6bBUFCBjpjkEco="}]},"directories":{}},"1.0.2":{"name":"gulp-mode","version":"1.0.2","description":"A gulp plugin for identifying biuld mode.","main":"index.js","scripts":{"test":"gulp test; cat ./test/junitresults.xml"},"repository":{"type":"git","url":"github.com:CODEYA/node-gulp-mode.git"},"keywords":["gulp","NODE_ENV","process.env.NODE_ENV","production","development"],"author":{"name":"CODEYA"},"license":"MIT","bugs":{"url":"https://github.com/CODEYA/node-gulp-mode/issues"},"dependencies":{"gulp-util":"^3.0.8"},"devDependencies":{"gulp":"^3.9.1","gulp-jasmine":"^2.4.2","gulp-load-plugins":"^1.5.0","jasmine-reporters":"^2.2.1"},"gitHead":"76df487693cb575d51697625fa68a3210431d425","_id":"gulp-mode@1.0.2","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"eiichiro-takahashi","email":"eiichiro@takahashike.jp"},"dist":{"integrity":"sha512-i1UqW2NmBkyNirpthzbW1Na7t6JeSttuWjJyX8oY2Xve1Nx9tGhscoFgv1I/EOEsRcxGmhGyIRvpiKKL1d918A==","shasum":"33c76033491fb71f47f1ebf8c67561ad9da7dfc9","tarball":"https://registry.npmjs.org/gulp-mode/-/gulp-mode-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE9r3hTq5IGTdNjm+7JioiyLcZBc6eu9yOJdQZjm4Yf0AiBB6hYVe02gt25jEKojAmxD+LSF2/yVRf2700T+e71e0Q=="}]},"maintainers":[{"name":"eiichiro-takahashi","email":"eiichiro@takahashike.jp"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-mode-1.0.2.tgz_1506352158604_0.8070153242442757"},"directories":{}},"1.1.0":{"name":"gulp-mode","version":"1.1.0","description":"A gulp plugin for identifying biuld mode.","main":"index.js","scripts":{"test":"gulp test; cat ./test/junitresults.xml"},"repository":{"type":"git","url":"github.com:CODEYA/node-gulp-mode.git"},"keywords":["gulp","NODE_ENV","process.env.NODE_ENV","production","development"],"author":{"name":"CODEYA"},"license":"MIT","bugs":{"url":"https://github.com/CODEYA/node-gulp-mode/issues"},"dependencies":{"ansi-colors":"^4.1.1","fancy-log":"^1.3.3","gulp-noop":"^1.0.1"},"devDependencies":{"gulp":"^4.0.2","gulp-jasmine":"^4.0.0","gulp-load-plugins":"^2.0.6","jasmine-reporters":"^2.4.0"},"gitHead":"70a10f19be482746bf2daca8b0df5fce4b5578ec","_id":"gulp-mode@1.1.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-6Eu+Nx5GNOhvEtNz+j3u1rZFR72l93uep7SviQM38stIeFD2+lIo+4lZrj4l0n2ESyp5ntSXdlM0lA8UKtOnkg==","shasum":"dbb47d99f5cbe28c8b94ff4a838e5e7291d3d9f2","tarball":"https://registry.npmjs.org/gulp-mode/-/gulp-mode-1.1.0.tgz","fileCount":7,"unpackedSize":19683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbcNgCRA9TVsSAnZWagAArSAQAIypiN/tQu4kfslCF0Os\n/n9F/NO+jHIy/53wcoemlqrzWb2mDR9kUDvauY1Cbz6YVbfOvNz8nBEsHcLZ\nBjPUL+dzRsYrQbGwYExT9fboOQKBGJmm9/to9YnC2N+K5UJdggde5aCWqFiE\n8Gj8pZCiwsW55Q91FOk1vFTL+f934F3LxXRsUe3aw8ZIx480VocIN31LSIj2\nrPc5H/mZftgllGZeU3VvzfZrWYnwI0Kt0OFg8MiqTE89qhumo4kMPZ9kRWLi\nu32eLsqH4TockbyAjh8bYUxm9O+3P60zvHs3DhagNrYJrvLY9c8bwhB94b8X\naiLg6LgHfoU/Ed0A+ZcTyV9eV8wEGoGnbev2Gp/vagTQVo9KU2ddWL7C7f3+\nH7poxpCFoYsaR+mLUNAm/qaLWFLOu4mp8t5DYnpUDa8jGTVzIWkgURvcjppm\ncEU+1K5RPSVAJR/ar4ytDIVOBj9cPan2CozZZsnVcgoJRN/DWnbKUMNueLqm\nC+aNUqvY+I0FHoOOPtjt2VLhqL41r1UnqhUA4NZMy5hSuG0/IMx3n6IXFEvh\nGX7olTtaR5VVTlLwC/aSnG2heTjDL0pPGBxVFS2MpGJUzGHr0zSvkRVZ6xfm\n2usBRxnimWz9VHrSl1q9sSE28xzvQ10GqICJ+6ClFYx6JqtwZvQdpp135zsw\nsX4t\r\n=bhAo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqjj3+zy9f4nEGcJ6KdSaa7kje2CAUTkLu+8uO6Krd0QIgNT1c1oakSUFHX4ql96CQ9AKsvg3yQ5x564Vm43F7awA="}]},"_npmUser":{"name":"eiichiro-takahashi","email":"eiichiro@takahashike.jp"},"directories":{},"maintainers":[{"name":"eiichiro-takahashi","email":"eiichiro@takahashike.jp"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-mode_1.1.0_1617806175814_0.18869945379378938"},"_hasShrinkwrap":false}},"readme":"# node-gulp-mode\n\nA gulp plugin for identifying build mode.\n\n[![Circle CI](https://circleci.com/gh/CODEYA/node-gulp-mode/tree/master.svg?style=svg)](https://circleci.com/gh/CODEYA/node-gulp-mode/tree/master)\n[![npm version](https://badge.fury.io/js/gulp-mode.svg)](http://badge.fury.io/js/gulp-mode)\n[![npm downloads](https://img.shields.io/npm/dm/gulp-mode.svg)](https://img.shields.io/npm/dm/gulp-mode.svg)\n[![npm license](https://img.shields.io/npm/l/gulp-mode.svg)](https://img.shields.io/npm/l/gulp-mode.svg)\n[![Dependency Status](https://gemnasium.com/CODEYA/node-gulp-mode.svg)](https://gemnasium.com/CODEYA/node-gulp-mode)\n\n# Install\n\nWith [npm](https://www.npmjs.com/) do:\n\n```bash\n$ npm install --save-dev gulp-mode\n```\n\n# Usage\n\n```javascript\nvar gulp = require('gulp');\nvar mode = require('gulp-mode')();\nvar uglify = require('gulp-uglify');\n\ngulp.task('default', function() {\n  gulp.src('src/*.js')\n      .pipe(mode.production(uglify()))\n      .pipe(gulp.dest('dist'));\n});\n```\n\nTo specify mode\n\n```bash\n% gulp --production\n```\n\nor\n\n```bash\n% NODE_ENV=production gulp\n```\n\n# API\n\n## Construct\n\n```javascript\nvar mode = require('gulp-mode')([*options*]);\n```\n\n**Options:**\n\n| name        | type    | description                           | default value                 |\n|-------------|---------|---------------------------------------|-------------------------------|\n| modes       | array   | List of mode name.                    | [\"production\", \"development\"] |\n| default     | string  | Default mode. Must be in the `modes`. | \"development\"                 |\n| verbose     | boolean | Show verbose messages.                | false                         |\n\nExample:\n\n```javascript\nvar mode = require('gulp-mode')({\n  modes: [\"production\", \"development\"],\n  default: \"development\",\n  verbose: false\n});\n```\n\n## Evaluate the mode\n\nTo evaluate the mode,\n\n```javaScript\nmode.<mode name>(callback)\n```\n\nExample:\n\n```javascript\ngulp.src('src/*.js')\n    .pipe(mode.production(uglify()))\n    .pipe(gulp.dest('dist'));\n```\n\n## Get current mode\n\nTo get current mode as boolean\n\n```javascript\nmode.<mode name>();\n```\n\nExample:\n\n```javascript\nvar isProduction = mode.production();\nif(isProduction) {\n  console.log(\"Production mode\");\n}\n```\n","maintainers":[{"name":"eiichiro-takahashi","email":"eiichiro@takahashike.jp"}],"time":{"modified":"2022-06-18T17:33:15.247Z","created":"2015-08-10T00:08:31.314Z","1.0.0":"2015-08-10T00:08:31.314Z","1.0.1":"2015-08-10T03:44:49.636Z","1.0.2":"2017-09-25T15:09:18.681Z","1.1.0":"2021-04-07T14:36:15.932Z"},"keywords":["gulp","NODE_ENV","process.env.NODE_ENV","production","development"],"repository":{"type":"git","url":"github.com:CODEYA/node-gulp-mode.git"},"author":{"name":"CODEYA"},"bugs":{"url":"https://github.com/CODEYA/node-gulp-mode/issues"},"license":"MIT","readmeFilename":"README.md"}