{"_id":"gulp-contains","_rev":"9-0ac30f63cac35167b941fd3267fd2f19","name":"gulp-contains","description":"Throws an error if a string is found.","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"gulp-contains","version":"1.0.0","description":"Throws an error if a string is found.","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/callumacrae/gulp-contains"},"keywords":["gulp","string","gulpplugin"],"author":{"name":"Callum Macrae","email":"callum@macr.ae"},"license":"MIT","bugs":{"url":"https://github.com/callumacrae/gulp-contains/issues"},"homepage":"https://github.com/callumacrae/gulp-contains","dependencies":{"gulp-util":"^3.0.3","through2":"^0.6.3"},"devDependencies":{"mocha":"^2.1.0","should":"^5.0.0"},"gitHead":"0f840b312529a4de3aa1ce6145e4820cc2d3e2a4","_id":"gulp-contains@1.0.0","_shasum":"b925971d1d3b440cd47b1f654882597753a9e699","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"callumacrae","email":"callum@macr.ae"},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"dist":{"shasum":"b925971d1d3b440cd47b1f654882597753a9e699","tarball":"https://registry.npmjs.org/gulp-contains/-/gulp-contains-1.0.0.tgz","integrity":"sha512-FDjW6PqEew00ZYp5v90nlLa/d1V2Szd6t4AhF0glS7mGu6RTIeX9MAuYXYSBuozInpirJz2aiWtSm3cLw92DwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHcKyAWlHJBdjrbPiCRUSVLkl3byFLfCUZT7bFl4iGY3AiAbqe88BSvoBaegrksRmgxOwZxOIO5dZTEEnKCnAw8FXA=="}]},"directories":{}},"1.1.0":{"name":"gulp-contains","version":"1.1.0","description":"Throws an error if a string is found.","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/callumacrae/gulp-contains.git"},"keywords":["gulp","string","gulpplugin"],"author":{"name":"Callum Macrae","email":"callum@macr.ae"},"license":"MIT","bugs":{"url":"https://github.com/callumacrae/gulp-contains/issues"},"homepage":"https://github.com/callumacrae/gulp-contains","dependencies":{"gulp-util":"^3.0.3","through2":"^0.6.3"},"devDependencies":{"mocha":"^2.1.0","should":"^5.0.0"},"gitHead":"5f35406e4792c035041dffb59254beca636cc6bf","_id":"gulp-contains@1.1.0","_shasum":"c069d5108f88b191ce22a34a3f0adad3465d58dd","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"callumacrae","email":"callum@macr.ae"},"dist":{"shasum":"c069d5108f88b191ce22a34a3f0adad3465d58dd","tarball":"https://registry.npmjs.org/gulp-contains/-/gulp-contains-1.1.0.tgz","integrity":"sha512-sN4OpwDrYM/EhCI633NcxTkXSP/iZ/hxlBuKS498qOvNLQZ3u8sTOTDf+KYT0FHu1t0kqT2/u3DKqYLMo1WAyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAPsKCPMXkuZPi7XW+DKtYj7ohGAMifHYYq26wCH3ff7AiEAswXJzpHq5zMFtlD1AMlFe+xhtd9mjhC8wrzIZ1n5S+Y="}]},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/gulp-contains-1.1.0.tgz_1462785641491_0.7458145988639444"},"directories":{}},"1.2.0":{"name":"gulp-contains","version":"1.2.0","description":"Throws an error if a string is found.","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/callumacrae/gulp-contains.git"},"keywords":["gulp","string","gulpplugin"],"author":{"name":"Callum Macrae","email":"callum@macr.ae"},"license":"MIT","bugs":{"url":"https://github.com/callumacrae/gulp-contains/issues"},"homepage":"https://github.com/callumacrae/gulp-contains","dependencies":{"plugin-error":"1.0.1","through2":"^0.6.3","vinyl":"2.2.0"},"devDependencies":{"mocha":"^2.1.0","should":"^5.0.0"},"gitHead":"292d4cc4c52304d073ca7d89012ed792f02c75bc","_id":"gulp-contains@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"petasittek","email":"peta.sittek@gmail.com"},"dist":{"integrity":"sha512-aoYM2Y14aUGJuelFwu/mFOm3rjfuWT7BaBZRNdhDA+CjlAz77Ja7e2h3FHTNstS+6jiicjOT3PBuaxTxG19oFg==","shasum":"9788d4019bfda5f16a831e05f6474a5ba2d5e102","tarball":"https://registry.npmjs.org/gulp-contains/-/gulp-contains-1.2.0.tgz","fileCount":6,"unpackedSize":6466,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbxQL/CRA9TVsSAnZWagAAeBcP/3enG9o3eyglAFSWOMJd\nZLDkFZhmob3bYOXWo3yngat96TecyOpGbKxE/YeJjWOYeccBwBbIUoULq5QK\neLDQMqZ5DNZMbmiZ+rMS7Y5uLn0g55SPACqyVeu44EjLEwNd6CF4XAs55Nyv\ny0SvdV4SfyGDn+IwIUGJQrOLYH4FHov0NduqqfvlpHynzLYZCdsFgRvYGgoo\nraZ0FyB4F4wZo8HdBDke33IFFlDNkk8FyzeqxzteW7B6UfU85LY92gnB8vuf\nXuFgsql5laNQHf4ajzdX4bPOMPpfr4UbljB2R1Wx9C6dETDTBFaqmbs88pHH\ndAznrqYj9dWgq7OShR6KWe0mQLUWvok1RmfC5hlJuetonqZ3YE1N/+RlkmrH\ni67yljxyDSh4d7FGeGGtATdgCCSWmIHa2QkOjjPzURv1RYTpYZG3QfORgj+s\nAUvQ7XZxBQQq2Ha7xsgGHmDRCCQjK5g6ZRzxPsPrUbgK4DublARGObnVbX2X\niso8OW0/5piA8IZADoZ2sXavxD5ZtAIjnhJfLRHB4KdrOQIPvcEBv3wScFFz\nNcuGhutjnw3bqzTG5zh6LO7mLJo+hCM7x276Z0TogEC0zGGTBhTYkrWMiuhc\nVPkGxtpCj4R5VRxtR1Djl2oCP7YmClS+SH7jclKc6CPh6D02zDD6slV0rDmx\n4a/i\r\n=lNbD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZMtle0Jxa6MXwIGn51x0/rCeawONl6kX7I+y0/jy/+wIhAO9zyzQt3CC4c7gXRatQZ0EMWb3zf+xCPdoca5Aw4Jr3"}]},"maintainers":[{"name":"callumacrae","email":"callum@macr.ae"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-contains_1.2.0_1539638015316_0.8080202337753275"},"_hasShrinkwrap":false}},"readme":"# gulp-contains [![Build Status](https://travis-ci.org/callumacrae/gulp-contains.svg?branch=master)](https://travis-ci.org/callumacrae/gulp-contains)\n\nThrows an error or calls a callback if a given string is found in a file.\n\nUseful for dumb quality checking.\n\n## Install\n\n```\n$ npm install --save-dev gulp-contains\n```\n\n## Usage\n\nThe following code will throw an error if \"../node_modules\" is found in any\nSass or SCSS file.\n\n```js\nvar gulp = require('gulp');\nvar contains = require('gulp-contains');\n\ngulp.task('default', function () {\n\tgulp.src('./src/**/*.{sass, scss}')\n\t\t.pipe(contains('../node_modules'));\n});\n```\n\nThe contains function accepts a string, a regular expression or an array of either (any of\nwhich, when matched, will cause an error to be thrown).\n\nYou can also specify a callback function, in which you can handle the error\nyourself or choose to completely ignore it:\n\n```js\nvar gulp = require('gulp');\nvar contains = require('gulp-contains');\n\ngulp.task('default', function () {\n\tgulp.src('./src/**/*.{sass, scss}')\n\t\t.pipe(contains({\n\t\t\tsearch: '../node_modules',\n\t\t\tonFound: function (string, file, cb) {\n\t\t\t\t// string is the string that was found\n\t\t\t\t// file is the vinyl file object\n\t\t\t\t// cb is the through2 callback\n\n\t\t\t\t// return false to continue the stream\n\t\t\t}\n\t\t}));\n});\n```\n\n## License\n\nReleased under the MIT license.","maintainers":[{"email":"callum@macr.ae","name":"callumacrae"},{"email":"peta.sittek@gmail.com","name":"petasittek"}],"time":{"modified":"2022-06-18T16:50:14.772Z","created":"2015-02-16T18:26:52.834Z","1.0.0":"2015-02-16T18:26:52.834Z","1.1.0":"2016-05-09T09:20:42.588Z","1.2.0":"2018-10-15T21:13:35.456Z"},"homepage":"https://github.com/callumacrae/gulp-contains","keywords":["gulp","string","gulpplugin"],"repository":{"type":"git","url":"git+https://github.com/callumacrae/gulp-contains.git"},"author":{"name":"Callum Macrae","email":"callum@macr.ae"},"bugs":{"url":"https://github.com/callumacrae/gulp-contains/issues"},"license":"MIT","readmeFilename":"README.md","users":{"ccd3v":true}}