{"id":20073605,"url":"https://github.com/ragingwind/gulp-crisper","last_synced_at":"2025-10-15T23:59:37.936Z","repository":{"id":30535637,"uuid":"34090247","full_name":"ragingwind/gulp-crisper","owner":"ragingwind","description":"gulp plugin for crisper","archived":false,"fork":false,"pushed_at":"2020-11-06T20:50:01.000Z","size":19,"stargazers_count":18,"open_issues_count":2,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-01T22:16:47.421Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ragingwind.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-17T01:37:01.000Z","updated_at":"2023-06-20T11:25:31.000Z","dependencies_parsed_at":"2022-09-02T19:30:18.349Z","dependency_job_id":null,"html_url":"https://github.com/ragingwind/gulp-crisper","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fgulp-crisper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fgulp-crisper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fgulp-crisper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ragingwind%2Fgulp-crisper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ragingwind","download_url":"https://codeload.github.com/ragingwind/gulp-crisper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252579994,"owners_count":21771248,"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","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-11-13T14:46:57.048Z","updated_at":"2025-10-15T23:59:37.852Z","avatar_url":"https://github.com/ragingwind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-crisper\n\n\u003e 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 gulp-crisper\n```\n\n\n## Usage\n\n```js\nvar gulp = require('gulp');\nvar vulcanize = require('gulp-vulcanize');\nvar crisper = require('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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fgulp-crisper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fragingwind%2Fgulp-crisper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fragingwind%2Fgulp-crisper/lists"}