{"id":20027100,"url":"https://github.com/unic/gulp-svg-dimensions","last_synced_at":"2026-06-08T06:33:18.714Z","repository":{"id":30242384,"uuid":"33793585","full_name":"unic/gulp-svg-dimensions","owner":"unic","description":"Gulp plugin to parse SVGs and save their dimensions to the file object","archived":false,"fork":false,"pushed_at":"2015-04-24T22:31:47.000Z","size":148,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-02T04:41:47.291Z","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/unic.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-11T21:40:51.000Z","updated_at":"2018-04-11T19:08:38.000Z","dependencies_parsed_at":"2022-09-03T18:50:57.916Z","dependency_job_id":null,"html_url":"https://github.com/unic/gulp-svg-dimensions","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/unic/gulp-svg-dimensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fgulp-svg-dimensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fgulp-svg-dimensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fgulp-svg-dimensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fgulp-svg-dimensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unic","download_url":"https://codeload.github.com/unic/gulp-svg-dimensions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fgulp-svg-dimensions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34051768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":[],"created_at":"2024-11-13T09:09:02.948Z","updated_at":"2026-06-08T06:33:18.672Z","avatar_url":"https://github.com/unic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-svg-dimensions\n\nUses [Cheerio](https://www.npmjs.com/package/cheerio) to parse SVGs and add their dimensions (integer values of ```width``` and ```height``` attributes) to the file object (```file.data.dimensions```).\n\n## Usage\n\nFirst, install `gulp-svg-dimensions` as a development dependency:\n\n```shell\nnpm install --save-dev gulp-svg-dimensions@git+https://git@github.com/unic/gulp-svg-dimensions.git\n```\n\nThen, add it to your `gulpfile.js`:\n\n```javascript\nvar svgDimensions = require('gulp-svg-dimensions');\n\ngulp.task('icons', function(){\n  gulp.src(['app/icons/*.svg'])\n    .pipe(svgDimensions())\n    // Some other plugin making use of file.data.dimensions\n    // e.g. { x:100, y:200 }\n    .pipe(plugin())\n    .pipe(gulp.dest('dist/icons/'));\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funic%2Fgulp-svg-dimensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funic%2Fgulp-svg-dimensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funic%2Fgulp-svg-dimensions/lists"}