{"id":19490889,"url":"https://github.com/pandao/gulp-x-includer","last_synced_at":"2025-07-19T08:32:26.550Z","repository":{"id":57259537,"uuid":"44424585","full_name":"pandao/gulp-x-includer","owner":"pandao","description":"Gulp plugin for include js/css/html... any file.","archived":false,"fork":false,"pushed_at":"2015-10-17T06:20:39.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T18:51:07.097Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pandao.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGE.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-17T04:56:24.000Z","updated_at":"2023-09-08T17:02:44.000Z","dependencies_parsed_at":"2022-08-25T04:50:08.095Z","dependency_job_id":null,"html_url":"https://github.com/pandao/gulp-x-includer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pandao/gulp-x-includer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandao%2Fgulp-x-includer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandao%2Fgulp-x-includer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandao%2Fgulp-x-includer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandao%2Fgulp-x-includer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pandao","download_url":"https://codeload.github.com/pandao/gulp-x-includer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandao%2Fgulp-x-includer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265904803,"owners_count":23846691,"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-10T21:14:41.750Z","updated_at":"2025-07-19T08:32:26.521Z","avatar_url":"https://github.com/pandao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-x-includer\n\nGulp plugin for include js/css/html... any file.\n\n### Install\n\n```shell\n$ npm install gulp-x-includer --save-dev\n```\n\n### Syntax\n\nDefault supported 4 comment syntax.\n\n```\n'' or \"\"\n\u003c!-- include \"path/to/xxx.html\" --\u003e\n// include \"path/to/xxx.js\"\n/* include \"path/to/xxx.css\" */\n# include \"./include/test.txt\"\n```\n\nHTML :\n\n```html\n\u003c!-- include \"path/to/xxx.html\" --\u003e\n```\n\nJavaScript :\n\n```javascript\n// include \"path/to/xxx.js\"\n```\n\nCSS :\n\n```css\n/* include \"path/to/xxx.css\" */\n```\n\nOther file (e.g. markdown .md, configure .conf, .ini ...) :\n\n```markdown\n# include \"./include/test.txt\"\n```\n\n### Examples\n\n`test.html` :\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003ctitle\u003eTest HTML Document\u003c/title\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003c!-- fdsfsadf --\u003e\n    \u003cmeta name=\"description\" content=\"\"\u003e\n    \u003cmeta name=\"keywords\" content=\"\"\u003e\n    \u003cstyle\u003e\n        /* include \"./css/test.css\" */\n        /* fasdfadsfsadf */\n        div {color: red;}\n        /* fasdfadsfsadf */\n        /* include \"./css/test1.css\" */\n        p {color: green;}\n        /* fasdfadsfsadf */\n        strong {color: yellow;}\n        /* fasdfadsfsadf */\n        /* include \"./css/test2.css\" */\n    \u003c/style\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003c!-- include \"./html/header.html\" --\u003e\n    \u003c!-- fdsfsadf --\u003e\n    \u003c!-- test --\u003e\n    \u003cp\u003eTEST\u003c/p\u003e\n    \u003c!-- include \"./html/main.html\" --\u003e\n    \u003c!-- fdsfsadf --\u003e\n    \u003cdiv\u003eTEST\u003c/div\u003e\n    \u003c!-- include \"./html/footer.html\" --\u003e\n    \u003c!-- fdsfsadf --\u003e\n    \n    \u003cscript\u003e\n        // include './js/test.js'\n        var a = 234567890, b, c;\n        // fadsfasdfdsafsdfsd\n        // fadsfasdfdsafsdfsd\n        // fadsfasdfdsafsdfsd\n        // fadsfasdfdsafsdfsd\n        // include './js/functions.js'\n\n        $(function(){\n            alert(345678);\n        });\n    \u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n`Gulpfile.js` :\n\n```javascript\nvar gulp         = require('gulp');\nvar includer     = require(\"gulp-x-includer\");\n\ngulp.task(\"include\", function(){\n    gulp.src([\"./*.html\", \"./*.css\", \"./*.js\"])\n    .pipe(includer())\n    .pipe(gulp.dest(\"./dist\"));\n});\n```\n\nBuild :\n\n```shell\n$ gulp include\n```\n\n### Options\n\n```javascript\n{\n    debug        : true | false,         // print file includes for console.log(), default false.\n    debugOptions : true | false,         // print options object for console.log(), default false.\n    regexs       : {},                   // define you include regex\n    transform    : function(content) {}  // transform include file content\n}\n```\n\n### Changes\n\n[Change logs](https://github.com/pandao/gulp-x-includer/blob/master/CHANGE.md)\n\n### License\n\nThe [MIT](https://github.com/pandao/gulp-x-includer/blob/master/LICENSE) License.\n\nCopyright (c) 2015 Pandao","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandao%2Fgulp-x-includer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpandao%2Fgulp-x-includer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandao%2Fgulp-x-includer/lists"}