{"_id":"gulp-fail","_rev":"15-97428257a3b5e80272c4763f8b7080fc","name":"gulp-fail","description":"A gulp plugin which forces a task to fail.","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"gulp-fail","description":"A gulp plugin which forces a task to fail.","version":"1.0.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bsara/gulp-fail.git"},"homepage":"https://github.com/bsara/gulp-fail#readme","bugs":{"url":"https://github.com/bsara/gulp-fail/issues"},"author":{"name":"Brandon Sara"},"keywords":["gulpplugin","abort","kill","fail","error","stop"],"main":"index.js","files":["index.js","LICENSE","README.md"],"dependencies":{"gulp-util":"^3.0.6","through2":"^2.0.0"},"devDependencies":{"jscs":"latest","jshint":"latest"},"scripts":{"test":"jshint *.js test/*.js && jscs *.js test/*.js"},"gitHead":"d2e22e469e8b367866aac54a82f652159f70fb85","_id":"gulp-fail@1.0.0","_shasum":"4481f9c7524f60fbaea1946c6cd53c06cdd8af6f","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.6","_npmUser":{"name":"bsara","email":"bsara.dev@gmail.com"},"dist":{"shasum":"4481f9c7524f60fbaea1946c6cd53c06cdd8af6f","tarball":"https://registry.npmjs.org/gulp-fail/-/gulp-fail-1.0.0.tgz","integrity":"sha512-EJ+Ih/XKD5AfJwdRagNXBXTiIV1aJJaFnoqe6IwHa0eM3GDI1SwBQFbOuH9edAMNZmctbt+3szN8kCH7OZui6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB1WnjP9605GOQJsrahARL6Ce0V7pQkv5S9HLbfkpgmBAiAIQSaidbI1AaLKpUJGL4QDrcgyPWe5aNOTizQxC9+AyQ=="}]},"maintainers":[{"name":"bsara","email":"bsara.dev@gmail.com"}],"directories":{}},"1.0.1":{"name":"gulp-fail","description":"A gulp plugin which forces a task to fail.","version":"1.0.1","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bsara/gulp-fail.git"},"homepage":"https://github.com/bsara/gulp-fail#readme","bugs":{"url":"https://github.com/bsara/gulp-fail/issues"},"author":{"name":"Brandon Sara"},"keywords":["gulpplugin","abort","kill","fail","error","stop"],"main":"index.js","files":["index.js","LICENSE","README.md"],"dependencies":{"gulp-util":"^3.0.6","through2":"^2.0.0"},"devDependencies":{"jscs":"latest","jshint":"latest"},"scripts":{"test":"jshint *.js test/*.js && jscs *.js test/*.js"},"gitHead":"54ba3192f7c83e34a6adbf7493b86eb87af95a16","_id":"gulp-fail@1.0.1","_shasum":"cc2940b7ca2a265916a5ffcc577a7eecf26411e3","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.6","_npmUser":{"name":"bsara","email":"bsara.dev@gmail.com"},"dist":{"shasum":"cc2940b7ca2a265916a5ffcc577a7eecf26411e3","tarball":"https://registry.npmjs.org/gulp-fail/-/gulp-fail-1.0.1.tgz","integrity":"sha512-i4GnZWk8hfJoeYpTX6kvdYW6RTIGz9H27TxOwMlBu4GK8DuiRBty2WnpgFME7J1tTggkvk4dy/HsFTGmdpxiMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvLOQhDOqgHvS3A7QWVu7n8bmP6rLyr1XeT3Zw44D6IAIgQq8Brqv7UDKh0oTytsSgv9PM6Tu0zcz+ddTuuf9lEp0="}]},"maintainers":[{"name":"bsara","email":"bsara.dev@gmail.com"}],"directories":{}},"1.0.2":{"name":"gulp-fail","description":"A gulp plugin which forces a task to fail.","version":"1.0.2","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bsara/gulp-fail.git"},"homepage":"https://github.com/bsara/gulp-fail#readme","bugs":{"url":"https://github.com/bsara/gulp-fail/issues"},"author":{"name":"Brandon Sara","url":"http://bsara.github.io"},"contributors":[{"name":"Brian Frichette","url":"https://github.com/bfricka"}],"keywords":["gulpplugin","abort","kill","fail","error","stop"],"main":"index.js","files":["index.js","LICENSE","README.md"],"dependencies":{"gulp-util":"^3.0.6","through2":"^2.0.0"},"devDependencies":{"jscs":"latest","jshint":"latest"},"scripts":{"test":"jshint *.js && jscs *.js"},"gitHead":"8c916e3048c702599c33fbdb79c2ef75946a05bd","_id":"gulp-fail@1.0.2","_shasum":"4f398a1b1bd39406fce464c41f4eac074698a88a","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.9.1","_npmUser":{"name":"bsara","email":"bsara.dev@gmail.com"},"dist":{"shasum":"4f398a1b1bd39406fce464c41f4eac074698a88a","tarball":"https://registry.npmjs.org/gulp-fail/-/gulp-fail-1.0.2.tgz","integrity":"sha512-DZHo9kvD8oWLIiPlINClYaPXRwtu1BQv3I5wG0sKOPu5xCh76E0s8LjA1jNMX8mpMHODrvCXEx45UWuWz5evWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnYwqPjmVKwPyUYExSshSUSEnU20Opu4WcviSyUFzt/wIgb/+dO8Su3G55wAnK3V2rdnxRQC831uDVDqz9iSkR+GM="}]},"maintainers":[{"name":"bsara","email":"bsara.dev@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gulp-fail-1.0.2.tgz_1459280415458_0.063991395290941"},"directories":{}},"1.0.3":{"name":"gulp-fail","description":"A gulp plugin which forces a task to fail.","version":"1.0.3","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bsara/gulp-fail.git"},"homepage":"https://github.com/bsara/gulp-fail#readme","bugs":{"url":"https://github.com/bsara/gulp-fail/issues"},"author":{"name":"Brandon Sara","url":"http://bsara.github.io"},"contributors":[{"name":"Brian Frichette","url":"https://github.com/bfricka"}],"keywords":["gulpplugin","abort","kill","fail","error","stop"],"main":"index.js","files":["index.js","LICENSE","README.md"],"dependencies":{"gulp-util":"^3.0.6","through2":"^2.0.0"},"devDependencies":{"jscs":"latest","jshint":"latest"},"scripts":{"test":"jshint *.js && jscs *.js"},"gitHead":"92623558f839f90741db2047c296193a4f6b86d0","_id":"gulp-fail@1.0.3","_shasum":"bd2cbdee1e4c58ca955b2875e83fe7a3c3aa4e03","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.9.1","_npmUser":{"name":"bsara","email":"bsara.dev@gmail.com"},"dist":{"shasum":"bd2cbdee1e4c58ca955b2875e83fe7a3c3aa4e03","tarball":"https://registry.npmjs.org/gulp-fail/-/gulp-fail-1.0.3.tgz","integrity":"sha512-A8qEWCdg6TS5xmnKP3ZrHDXvr09ilbelPdZxLjT4dI3gWOK+gs3hBSbsp/2I48CEujjhh/6HkXv2cJCt1JDy4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGJo7CLUBsH0dR1Rfv6hHCistBVHnijIVKBBtDxDhI1aAiBrClyhsyuIyohzUx1VSbVbq6LYR03/xN6TPkY0ZXD+BA=="}]},"maintainers":[{"name":"bsara","email":"bsara.dev@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gulp-fail-1.0.3.tgz_1459286158258_0.9081751417834312"},"directories":{}},"1.0.4":{"name":"gulp-fail","description":"A gulp plugin which forces a task to fail.","version":"1.0.4","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bsara/gulp-fail.git"},"homepage":"https://github.com/bsara/gulp-fail#readme","bugs":{"url":"https://github.com/bsara/gulp-fail/issues"},"author":{"name":"Brandon Sara","url":"http://bsara.github.io"},"contributors":[{"name":"Brian Frichette","url":"https://github.com/bfricka"}],"keywords":["gulpplugin","abort","kill","fail","error","stop"],"main":"index.js","files":["index.js","LICENSE","README.md"],"dependencies":{"gulp-util":"^3.0.6","through2":"^2.0.0"},"devDependencies":{"jscs":"latest","jshint":"latest"},"scripts":{"test":"jshint *.js && jscs *.js"},"gitHead":"41c317f4593695ebf8ce7cbdf3c0d80a7b7c56a5","_id":"gulp-fail@1.0.4","_shasum":"cc61c4f548d7dd31c14c3a9d79b7459d2a0b29fc","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.9.1","_npmUser":{"name":"bsara","email":"bsara.dev@gmail.com"},"dist":{"shasum":"cc61c4f548d7dd31c14c3a9d79b7459d2a0b29fc","tarball":"https://registry.npmjs.org/gulp-fail/-/gulp-fail-1.0.4.tgz","integrity":"sha512-gXOrg4WUbvwpHpkJ1hLSHXj2SQ0ZOxHpO0GDKPovIZVwPRCCbLlm22MiBH9c4UTD9cA+lGBsq9aUlJjdf47Wbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChEdW0DCIN8nandwdl9U4eq4Nz7+ITOJ8Z0v5Ff1zd/wIhAKkSf2Xq3/PvwRvxaSR0KeTd6ndJe/U4Ufrko5hNoWKJ"}]},"maintainers":[{"name":"bsara","email":"bsara.dev@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gulp-fail-1.0.4.tgz_1459286798949_0.45611923187971115"},"directories":{}},"1.0.5":{"name":"gulp-fail","description":"A gulp plugin which forces a task to fail.","version":"1.0.5","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bsara/gulp-fail.git"},"homepage":"https://github.com/bsara/gulp-fail#readme","bugs":{"url":"https://github.com/bsara/gulp-fail/issues"},"author":{"name":"Brandon Sara","url":"http://bsara.github.io"},"contributors":[{"name":"Brian Frichette","url":"https://github.com/bfricka"}],"keywords":["gulpplugin","abort","kill","fail","error","stop"],"main":"index.js","files":["index.js","LICENSE","README.md"],"dependencies":{"gulp-util":"^3.0.6","through2":"^2.0.0"},"devDependencies":{"jscs":"latest","jshint":"latest"},"scripts":{"test":"jshint *.js && jscs *.js"},"gitHead":"8f71b1167e8fa5c8393c8dc9edc965ece6a0bab2","_id":"gulp-fail@1.0.5","_shasum":"ce8df1c4fb89e26cc17c76819ebfae5e424bb3aa","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.9.1","_npmUser":{"name":"bsara","email":"bsara.dev@gmail.com"},"dist":{"shasum":"ce8df1c4fb89e26cc17c76819ebfae5e424bb3aa","tarball":"https://registry.npmjs.org/gulp-fail/-/gulp-fail-1.0.5.tgz","integrity":"sha512-y7GwbK5QyRETS9fst6BAgrwUjG0I7rqpuSWSkSg+IN6IkdgFlPOAmQpRKfPDad60nFAEr8d0XdunjtnJNPJybA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGLl4llsy0suIvEGuNM+guBkHgDJ/Kem1L+c+JcW/tFBAiB7GknrJeHRzhwoEedRfQgPDwDrSoquX5/BDVah1/6YVw=="}]},"maintainers":[{"name":"bsara","email":"bsara.dev@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gulp-fail-1.0.5.tgz_1459298658578_0.5618423901032656"},"directories":{}},"1.1.1":{"name":"gulp-fail","description":"A gulp plugin which forces a task to fail.","version":"1.1.1","license":"MIT","repository":{"type":"git","url":"git+https://gitlab.com/bsara/gulp-fail.git"},"homepage":"https://gitlab.com/bsara/gulp-fail#readme","bugs":{"url":"https://gitlab.com/bsara/gulp-fail/issues"},"author":{"name":"Brandon Sara","url":"http://bsara.pro"},"contributors":[{"name":"Brian Frichette","url":"https://github.com/bfricka"},{"name":"Victor Hugo Teles Costa","url":"https://github.com/victorhtc"}],"keywords":["gulpplugin","abort","kill","fail","error","stop"],"scripts":{"test":"jshint *.js && jscs *.js","bump":"npm --no-git-tag-version version patch","bump:major":"npm --no-git-tag-version version major","bump:minor":"npm --no-git-tag-version version minor","bump:patch":"npm --no-git-tag-version version patch","postversion":"npx update-version-comment-refs && npx push-version-comment-refs","prepublishOnly":"git push && npx tag-version","postpublish":"npm run bump"},"main":"index.js","files":["index.js","LICENSE","README.md"],"dependencies":{"ansi-colors":"^2.0.2","plugin-error":"^1.0.1","through2":"^2.0.0"},"devDependencies":{"jscs":"latest","jshint":"latest","npm-scripts-versioning":"^1.0.0-beta.8"},"gitHead":"c08cd0d6768634c0a747b7c380574ee6bf6d9591","_id":"gulp-fail@1.1.1","_npmVersion":"6.3.0","_nodeVersion":"10.8.0","_npmUser":{"name":"bsara","email":"bsara.dev@gmail.com"},"dist":{"integrity":"sha512-qkheai+4CDFFFBU5m6eFKso22tLkE4gsmgUxPPynlrkSnKLeA51slYrvy7mXIzx+uTmVw0jy0Jys2GnwrwoH5g==","shasum":"08fe6ea14824cc87e879d6c258f218c4589418cd","tarball":"https://registry.npmjs.org/gulp-fail/-/gulp-fail-1.1.1.tgz","fileCount":5,"unpackedSize":8868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbaf0vCRA9TVsSAnZWagAAI3QP/2BafHSn4G2EZsGEpOCg\n6SAB5NzmUpHeH2x5FArTc8GcdirVqwNnsg46xRcRWJsQq5ELcLseOkdS3yT6\nVJJZlkxxlsOXTGGVh+NCj+1VkWmk1roof5UUdonahe8V1wIUP5PO3XvUM5He\n2JJAdfO2PkIvqq1jbwQKsgwiyU+P1BsBxpOjUBHNhgAPouLTc8ncvOGIzYKJ\nPTDQ1tkT+jAEM6LxIwdKndA5DtfJF9nP2oCLdnqMiucR+DPEBnRSm1Jjszd0\nnp058NI+KyyijBiPZBzdsRHa4Ui3uR6bOVLwgW97QoW3Q0352nTDYGNcEjX+\nslIuTWLGGI3/OGa8linEOP8P5+h/s/ey69eZR1esjunpXJGH5AwO1rzRSLcs\nvr5sxYKQJIwSE2s1MhtjTf0ryx46WgTjdOcfevZ3Vpuk9HP/3SSyCEVI6Nu1\ne7j3met+Teaw9fO9+LDR3ufmrepI4A4/aoIR0zhnDLA6NGRH/ONoXvhsg9TV\n3ysFzF8QnixfcMxZh/aK89NQBre/Xw456i24iFiGH1gbKP0ukrWDq/4EX+qq\n55jApd/TQBTUEcaChLnzU2/7o0BlTATVmhpupKsayFM0eSsRfcPVGFgxiCkS\nhKTq6Oq+ERJ4kWlnwl2qoOo7c5Fzb9r0ipNHfG24EZdWd2Q1t8R9fVXJ2mdf\nsVNH\r\n=VjAp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEnuFy5453Ub2iSIoZn58RVgm+scHC0B1xVZazPxB7HAiEA2nqa2Pee9LPcJ4Ewg4kBmbplZJWfxPN2h6ANsV/th2c="}]},"maintainers":[{"name":"bsara","email":"bsara.dev@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-fail_1.1.1_1533672751814_0.2603522007435233"},"_hasShrinkwrap":false},"2.0.0":{"name":"gulp-fail","description":"A gulp plugin which forces a task to fail.","version":"2.0.0","engines":{"node":">=4.0"},"license":"MIT","repository":{"type":"git","url":"git+https://gitlab.com/bsara/gulp-fail.git"},"homepage":"https://gitlab.com/bsara/gulp-fail#readme","bugs":{"url":"https://gitlab.com/bsara/gulp-fail/issues"},"author":{"name":"Brandon Sara","url":"https://bsara.dev"},"contributors":[{"name":"Brian Frichette","url":"https://github.com/bfricka"},{"name":"Victor Hugo Teles Costa","url":"https://github.com/victorhtc"}],"keywords":["gulpplugin","abort","kill","fail","error","stop"],"scripts":{"test":"npx jshint *.js && jscs *.js","bump":"npm --no-git-tag-version version patch","bump:major":"npm --no-git-tag-version version major","bump:minor":"npm --no-git-tag-version version minor","bump:patch":"npm --no-git-tag-version version patch","postversion":"npx update-version-comment-refs && npx push-version-comment-refs","prepublishOnly":"git push && npx tag-version","postpublish":"npm run bump"},"main":"index.js","dependencies":{"ansi-colors":">=4.1.1 <4.2","plugin-error":">=1.0.1 <1.1","through2":">=3.0.1 <3.1"},"devDependencies":{"jscs":"latest","jshint":"latest","npm-scripts-versioning":"^1.0.0-beta.8"},"gitHead":"9f626e5209c84995c4c7f83f1cef556c98a17bc1","_id":"gulp-fail@2.0.0","_nodeVersion":"13.5.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-15O2qJ9LA2S6ASJ2lFqtNvynTVbeBPO24ro/8J2enZ9Ov8PV3YmOxcmWILg85rWRAapsbugbolCouCkBsSrtcg==","shasum":"d27b94ae58e5cb0ce040f5a8b4872c3b07e26ca2","tarball":"https://registry.npmjs.org/gulp-fail/-/gulp-fail-2.0.0.tgz","fileCount":5,"unpackedSize":9228,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeD4VJCRA9TVsSAnZWagAAIToP/3QYFDQxvjJxKVCJ5FlT\nkv3oaox8qQm5H28btjUICG1UF6gnbg0qOWf2dqhX7T2zAy+P2BwIzUWTGwEj\ndajom0UxA3IaKblNu/H/rX1vSB9Ciaj4JLaF49kagC5gF4BvlE8V8mlnvuyQ\nGfahaXA6jh6diJkju8I4M6rOq5NlTBisfwOX6b4pY0QYj9hQ0f07HG3m7ZD4\naazGDM3fCGBYY/gi1utg6Sf9WxIhunTDMHgoCAvyedSNV3Fc/wHCEntu5xlC\n6bTgGWOqBIsmas4NHDQS+5/4ofHMyR823DGGWqWm1o5PTWoavJAngfLDXKbw\nGhCONTPAPxwdmBZ0wbqNFx7w4g7ah2n8sWc4aUjgLD3V3JjQUHFWRF5fBnl6\nLt8Q7rt62pozB8o8osSOArsCfQS3CY0cJqLgkUMModmMc9M7UWGMcnRS3R9c\nLtdq4292kinL38JQaymgMYCnvLmr6t8VoUZgEuamhuP4eRdKQ7GsRRHyPcqx\novkK6c1wXPZPwL+Gz68aVAXILRVR0crOA1LYkUJP1wMik2CaKpD8EY/sqxIt\nGQQaoXK1CZJlv9UmjTwgluNXwIVh4fp9vYNsPo0hIcANMJAgUq0nObPvAXo3\nDwl8GdQBVFX441MnzNUNd8TqIECefPGwzwluxsqyk1OPDqMa4EYx1ght+JxR\nsiTd\r\n=U4CM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYz/XEOHgmwXifflHTN/DDvTVNphjK6o53CboEksQJzAIgdUvplVpfyCLD3a5U6R2VLO///OExg/F8TTItPk0z8ss="}]},"maintainers":[{"name":"bsara","email":"bsara.dev@gmail.com"}],"_npmUser":{"name":"bsara","email":"bsara.dev@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-fail_2.0.0_1578075464612_0.90136817113873"},"_hasShrinkwrap":false}},"readme":"# gulp-fail [![NPM Package](https://img.shields.io/npm/v/gulp-fail.svg?style=flat-square)](https://www.npmjs.com/package/gulp-fail) [![Build Status](https://img.shields.io/travis/bsara/gulp-fail.svg?style=flat-square)](https://travis-ci.org/bsara/gulp-fail)\n\n> Forces a gulp task to fail. (Works great with [gulp-if][gi]!)\n\n\n\n## Insallation\n\n    $ npm install --save-dev gulp-fail\n\n\n\n## Usage\n\n> **NOTE:** It really makes most sense to use this plugin with [gulp-if][gi] in almost all cases.\n\n\n#### No Message Given\n\n```javascript\nvar fail   = require('gulp-fail');\nvar gulpIf = require('gulp-if');\n\nvar condition = true;\n\n\n// Will fail with a generic message as to why.\ngulp.task('mytask', function() {\n  return gulp.src('**/*.js')\n             .pipe(gulpIf(condition, fail()));\n})\n```\n\n\n#### Custom Message\n\n```javascript\nvar fail   = require('gulp-fail');\nvar gulpIf = require('gulp-if');\n\nvar condition = true;\n\n\n// Will fail with the given message shown as the reason.\ngulp.task('mytask', function() {\n  return gulp.src('**/*.js')\n             .pipe(gulpIf(condition, fail(\"It failed cause I told it to! ...Hooray?\")));\n})\n```\n\n\n#### Message Function\n\n```javascript\nvar fail   = require('gulp-fail');\nvar gulpIf = require('gulp-if');\n\nvar condition = true;\n\n\n// Will fail with the message returned by the function passed to `fail`.\ngulp.task('mytask', function() {\n  return gulp.src('**/*.js')\n             .pipe(gulpIf(condition, fail(function() {\n               var message = \"\";\n\n               // do some stuff to determine what the message will be\n\n               return message;\n             })));\n})\n```\n\n\n#### Advanced Usage (JSHint and JSCS)\n\n```javascript\nvar fail        = require('gulp-fail');\nvar gulpIf      = require('gulp-if');\nvar jshint      = require('gulp-jshint');\nvar jscs        = require('gulp-jscs');\nvar jscsStylish = require('gulp-jscs-stylish');\n\n\n// Will fail without duplicating the jscs error messages.\ngulp.task('lint', function() {\n  var jscsFailed = false;\n\n  return gulp.src('**/*.js')\n             .pipe(jshint())\n             .pipe(jscs())\n             .pipe(jscsStylish.combineWithHintResults())\n             .pipe(jshint.reporter('jshint-stylish'))\n             .pipe(gulpIf(function(file) {\n               return ((file.jscs && !file.jscs.success)\n                        || (file.jshint && !file.jshint.success));\n             }, fail(\"Linting finished with errors!\", true)));\n})\n```\n\n\n\n### API\n\n#### fail([_message_], [_failAfterCompletion_])\n\n- **message** `String|Function`\n\n  The error message used the task is forced to fail. This can be a string or a function.\n  If a function is given, it is expected to return a `String`.\n\n- **failAfterCompletion** `Boolean`\n\n  If `true`, the stream will complete it's journey through every pipe before the fail occurs.\n  This was added because of plugins like [`gulp-jscs`](https://www.npmjs.com/package/gulp-jscs)\n  and [`gulp-jscs-stylish`](https://www.npmjs.com/package/gulp-jscs-stylish) (See [the example\n  above](#advanced-usage-jshint-and-jscs)).\n\n\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2020 Brandon Sara (https://bsara.dev)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n\n\n\n\n[gi]: https://www.npmjs.com/package/gulp-if \"gulp-if plugin\"\n","maintainers":[{"name":"bsara","email":"bsara.dev@gmail.com"}],"time":{"modified":"2022-06-18T17:03:37.315Z","created":"2015-07-29T01:36:23.721Z","1.0.0":"2015-07-29T01:36:23.721Z","1.0.1":"2015-07-29T16:27:33.483Z","1.0.2":"2016-03-29T19:40:15.877Z","1.0.3":"2016-03-29T21:15:58.677Z","1.0.4":"2016-03-29T21:26:39.353Z","1.0.5":"2016-03-30T00:44:18.963Z","1.1.0":"2018-08-07T20:08:21.733Z","1.1.1":"2018-08-07T20:12:31.931Z","2.0.0":"2020-01-03T18:17:44.724Z"},"homepage":"https://gitlab.com/bsara/gulp-fail#readme","keywords":["gulpplugin","abort","kill","fail","error","stop"],"repository":{"type":"git","url":"git+https://gitlab.com/bsara/gulp-fail.git"},"author":{"name":"Brandon Sara","url":"https://bsara.dev"},"bugs":{"url":"https://gitlab.com/bsara/gulp-fail/issues"},"license":"MIT","readmeFilename":"README.md","users":{"bsara":true,"krice-at-iq":true},"contributors":[{"name":"Brian Frichette","url":"https://github.com/bfricka"},{"name":"Victor Hugo Teles Costa","url":"https://github.com/victorhtc"}]}