{"_id":"@advanced-rest-client/gulp-crisper","_rev":"9-6cb0775bd5a7111c0836b34f470fbbba","name":"@advanced-rest-client/gulp-crisper","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@advanced-rest-client/gulp-crisper","version":"2.0.0","keywords":["gulpplugin","polymer","vulcanize","vulcan","csp","cspify","web","components"],"author":{"name":"ragingwind","email":"ragingwind@gmail.com"},"license":"MIT","_id":"@advanced-rest-client/gulp-crisper@2.0.0","maintainers":[{"name":"jarrodek","email":"jarrodek@gmail.com"}],"homepage":"https://github.com/advanced-rest-client/gulp-crisper#readme","bugs":{"url":"https://github.com/advanced-rest-client/gulp-crisper/issues"},"dist":{"shasum":"8ee0216cf055e07f133b4a811e0c0a40a09bb420","tarball":"https://registry.npmjs.org/@advanced-rest-client/gulp-crisper/-/gulp-crisper-2.0.0.tgz","fileCount":3,"integrity":"sha512-dyYHWD1FG5C1Y7UAyIWWk3DMGHWSYgRAYUVi77jwRiULyUtDx4n3IVRmfDv+3SvfDkJtC0YqiucAVYPomezQLA==","signatures":[{"sig":"MEUCIEdGM0ts8T4u0zbOgSBejnFbmF9VGl5yRn7M9L5+byG7AiEA/q+WrfDce3MnUKIkwXMYlQv6p3vMtKAwIyoND/QKh/g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3784,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch1yDCRA9TVsSAnZWagAAOO8QAIDJl07S1CiKhR684eJ8\nX8fS+JPZe6JqdX9nebsE6YYNzYdX02cOVrAuYxTHPMAkVD3PlUjI2y+D+eDV\noNuHanfaGXTNeTkBRAAGtzA+qV2rlR/5E58QAm/aNHIwnwmxkUhwuAxJb+UV\nG+VjcEyOjUwxb1X5TIWN+U4fNThVa0M6lNgtT2uNuPsFz2dsqFYBg0BSdhcP\n07GzEhSBNeA+neLYN/7H1Cejb6tFyMNBuFOCyb8yqote70RLMwi2Ie04jmnz\n8K9LGzz4BpGvQpYyQHm5IiJTEADk4OfE/oDS9KjGdjszVqZPtCrnlyCu8tHL\nYcZawAGBCLCLrDX+XUVv1Qp1kypOldv62MTO2b0PbMOlNsnEMWpKCqIS3Bjb\nzW+3U+3ECQ4SSbmkO4p5hKg9HkCDswg2CSE8PfGoX0hnZz8E7VVkK6OvWL/Z\nL3+RkVB2s8HxeYDyp9qbDcMeESsfehgn6k2uoIByAhS72XUI3/2EYCwEh73J\n7FE3Zk7jRKajj3rzjleNUdXT+L6Yy0Kgh/Bo0OU9S7Hp54OEYJ/r1MMr9hUO\nXI/P+n1ia12MNI0Jfeq4a/1+ZZe9tmDzUprd+b6fy3/mz4sj/qMjpudkd3vl\nE38ygnMjatXXHs67Vw9dD+nAZlACepKfE7Gl+inayU/huLg2UFhtqqb1vMgN\nUd/T\r\n=pe21\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=6.0.0"},"gitHead":"0397206fd7d938262506b40ff9684337a414120b","scripts":{"test":"ava"},"_npmUser":{"name":"jarrodek","email":"jarrodek@gmail.com"},"repository":{"url":"git+https://github.com/advanced-rest-client/gulp-crisper.git","type":"git"},"_npmVersion":"6.8.0","description":"Gulp plugin for crisper that split inline scripts from an HTML file for CSP compliance","directories":{},"_nodeVersion":"8.11.2","dependencies":{"vinyl":"^2.2.0","crisper":"^2.1.1","through2":"^2.0.0","plugin-error":"^1.0.1","object-assign":"^4.0.1"},"_hasShrinkwrap":false,"devDependencies":{"ava":"^1.3.1","mkdirp":"^0.5.1","rimraf":"^2.4.3","gulp-vulcanize":"^6.0.1"},"_npmOperationalInternal":{"tmp":"tmp/gulp-crisper_2.0.0_1552374915047_0.015450958369505052","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-03-12T07:15:14.889Z","modified":"2026-04-07T19:30:42.284Z","2.0.0":"2019-03-12T07:15:15.221Z"},"bugs":{"url":"https://github.com/advanced-rest-client/gulp-crisper/issues"},"author":{"name":"ragingwind","email":"ragingwind@gmail.com"},"license":"MIT","homepage":"https://github.com/advanced-rest-client/gulp-crisper#readme","keywords":["gulpplugin","polymer","vulcanize","vulcan","csp","cspify","web","components"],"repository":{"url":"git+https://github.com/advanced-rest-client/gulp-crisper.git","type":"git"},"description":"Gulp plugin for crisper that split inline scripts from an HTML file for CSP compliance","maintainers":[{"email":"jarrodek@gmail.com","name":"jarrodek"},{"email":"alexperez@mulesoft.com","name":"alexperez_march_2024"},{"email":"elmellidiego@gmail.com","name":"dmacias"}],"readme":"# gulp-crisper\n\n> Gulp plugin for [Crisper](https://github.com/PolymerLabs/crisper) that split inline scripts from an HTML file for CSP compliance\n\n*Issues with the output should be reported on the `Crisper` [issue tracker](https://github.com/PolymerLabs/crisper/issues).*\n\n\n## Install\n\n```\n$ npm install --save-dev @advanced-rest-client/gulp-crisper\n```\n\n\n## Usage\n\n```js\nvar gulp = require('gulp');\nvar vulcanize = require('gulp-vulcanize');\nvar crisper = require('@advanced-rest-client/gulp-crisper');\n\ngulp.task('default', function () {\n\treturn gulp.src('src/index.html')\n\t\t.pipe(vulcanize({\n\t\t\tabspath: '',\n\t\t\texcludes: [],\n\t\t\tstripExcludes: false,\n\t\t\tinlineScripts: false\n\t\t}))\n\t\t.pipe(crisper({\n\t\t\tscriptInHead: false, // true is default\n\t\t\tonlySplit: false\n\t\t}))\n\t\t.pipe(gulp.dest('dest'));\n});\n```\n\n## FAQ\n\n### Using `jsFileName` option\n\nIf you would like to use `jsFileName` and need to change the path of js file comes out from `crisper`? You should use `gulp-rename` for it because `jsFileName` option only affect on the path in `script` tag in vulcanized html. Here is one of samples to show how to use `gulp-rename` with it.\n\n```\nreturn gulp.src('public/elements/elements.vulcanized.html')\n  .pipe(crisper({\n    jsFileName: 'elements.crisper.js'\n  }))\n  .pipe(rename(function(file) {\n      if (file.extname === '.js') {\n        file.basename = ''elements.crisper.js';\n      }\n    }))\n  })\n  .pipe(gulp.dest('dest/elements'))\n```\n\n### Options\n\nYou can use options of crisper. see [doc](https://github.com/PolymerLabs/crisper#usage) for further information.\n\n## License\n\nMIT © [Jimmy Moon](http://ragingwind.me)\n","readmeFilename":"readme.md"}