{"id":21633920,"url":"https://github.com/tweedegolf/gulp-include-file","last_synced_at":"2026-05-07T18:14:04.645Z","repository":{"id":26284481,"uuid":"29732064","full_name":"tweedegolf/gulp-include-file","owner":"tweedegolf","description":"Include the contents of a file in javascript as a string.","archived":false,"fork":false,"pushed_at":"2016-03-01T09:20:05.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-23T09:07:35.318Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tweedegolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-01-23T12:43:22.000Z","updated_at":"2017-07-10T07:47:37.000Z","dependencies_parsed_at":"2022-07-24T10:31:49.733Z","dependency_job_id":null,"html_url":"https://github.com/tweedegolf/gulp-include-file","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tweedegolf/gulp-include-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tweedegolf%2Fgulp-include-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tweedegolf%2Fgulp-include-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tweedegolf%2Fgulp-include-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tweedegolf%2Fgulp-include-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tweedegolf","download_url":"https://codeload.github.com/tweedegolf/gulp-include-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tweedegolf%2Fgulp-include-file/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261984682,"owners_count":23240308,"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-25T03:14:30.719Z","updated_at":"2026-05-07T18:13:59.622Z","avatar_url":"https://github.com/tweedegolf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-include-file\nInclude the contents of a file inside a javascript file. This module will read\nthe contents of the file specified and then create a javascript string which\nwill be injected at the place specified.\n\n## Install\n\n    npm install gulp-include-file\n\n## Example\nGiven the following javascript file:\n\n```javascript\nfunction getText() {\n  return INCLUDE_FILE(\"example.txt\");\n}\n```\n\nAnd the following `example.txt` in the same directory:\n\n    Hello world!\n\n    This is a string.\n\nThis module will generate the following file:\n\n```javascript\nfunction getText() {\n  return \"Hello world\\n\\nThis is a string.\";\n}\n```\n\nUsing this example gulpfile:\n\n```javascript\nvar gulp = require('gulp');\nvar include_file = require('gulp-include-file');\n\ngulp.task('example', function () {\n  gulp.src('./src/scripts/**/*.js')\n    .pipe(include_file())\n    .pipe(gulp.dest('./dist'));\n});\n```\n\n## Options\n\n* **regex**: The regex to use instead of the default one.\n* **transform**: The transform function to use instead of the default one.\n\n## License\nThis module is released under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftweedegolf%2Fgulp-include-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftweedegolf%2Fgulp-include-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftweedegolf%2Fgulp-include-file/lists"}