{"id":18055752,"url":"https://github.com/marinerer/gulp-dataurl","last_synced_at":"2025-08-12T06:46:46.844Z","repository":{"id":213282988,"uuid":"733473967","full_name":"Marinerer/gulp-dataurl","owner":"Marinerer","description":"A gulp plugin that converts matched file paths into base64-encoded data URI strings. gulp 插件, 将文件内所有匹配的url转换为base64编码.","archived":false,"fork":false,"pushed_at":"2023-12-27T06:55:42.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T07:34:36.359Z","etag":null,"topics":["base64","data-uri","data-url","gulp-base64","gulp-plugin"],"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/Marinerer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-19T12:09:53.000Z","updated_at":"2023-12-19T12:21:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b6f8e2e-8d72-49af-a982-a9903ea37d11","html_url":"https://github.com/Marinerer/gulp-dataurl","commit_stats":null,"previous_names":["meqn/gulp-dataurl","marinerer/gulp-dataurl"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Marinerer/gulp-dataurl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marinerer%2Fgulp-dataurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marinerer%2Fgulp-dataurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marinerer%2Fgulp-dataurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marinerer%2Fgulp-dataurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Marinerer","download_url":"https://codeload.github.com/Marinerer/gulp-dataurl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Marinerer%2Fgulp-dataurl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270016564,"owners_count":24512963,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["base64","data-uri","data-url","gulp-base64","gulp-plugin"],"created_at":"2024-10-31T01:11:50.812Z","updated_at":"2025-08-12T06:46:46.814Z","avatar_url":"https://github.com/Marinerer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-dataurl\n\n[![version](https://img.shields.io/npm/v/gulp-dataurl?style=flat-square)](https://www.npmjs.com/package/gulp-dataurl)\n[![Codecov](https://img.shields.io/codecov/c/github/meqn/gulp-dataurl?token=UP2HP31ILF\u0026style=flat-square\u0026logo=codecov)](https://codecov.io/gh/Meqn/gulp-dataurl)\n[![release](https://img.shields.io/github/actions/workflow/status/meqn/gulp-dataurl/release.yml?style=flat-square)](https://github.com/Meqn/pipflow/releases)\n\n\n\n\u003e A gulp plugin that converts matched file paths into base64-encoded data URI strings.\n\n一个 gulp 插件，用于将匹配到的文件路径转换为 `base64` 编码的 data URI 字符串。\n\n\n\n## features\n\n- ☁️ Support for remote files\n- 🪝 Customizable file type extensions\n- 🚦 Inclusion/exclusion rulesets for selective file encoding\n- 🚧 File size limits to prevent overly large Data URLs\n- 🚀 Cache duplicate processed files\n\n\n\n## Usage\n\nInstall with npm\n```bash\nnpm install -D gulp-dataurl\n```\n\ngulp task:\n```js\nconst gulp = require('gulp');\nconst dataurl = require('gulp-dataurl');\n\ngulp.task('html', function() {\n  return gulp.src('src/**/*.html')\n    .pipe(dataurl({\n      remote: true,\n      extensions: ['.png', '.gif', '.svg'],\n      include: /\\?inline$/i,\n      exclude: 'node_modules',\n      limit: 2048 //2kb\n    }))\n    .pipe(gulp.dest('dist')); \n});\n```\n\n\n\n## Options\n\n\n#### remote\n- Type: `boolean`\n- Default: `false`\n\nWhether remote files are supported.\n\n#### extensions\n- Type: `string | string[]`\n\nSupported extensions.\n\n#### include\n- Type: `string | string[] | RegExp | RegExp[]`\n\nMatching rule patterns.\n\n#### exclude\n- Type: `string | string[] | RegExp | RegExp[]`\n\nExclusion rule patterns.\n\n\n#### limit\n- Type: `number`\n- Default: `4096`\n\nFile Size Limit.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarinerer%2Fgulp-dataurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarinerer%2Fgulp-dataurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarinerer%2Fgulp-dataurl/lists"}