{"id":19560666,"url":"https://github.com/zoubin/gulp-spritesmith-meta","last_synced_at":"2026-05-17T14:34:59.410Z","repository":{"id":57259068,"uuid":"45166570","full_name":"zoubin/gulp-spritesmith-meta","owner":"zoubin","description":"gulp plugin for creating sprites and their meta files using spritesmith","archived":false,"fork":false,"pushed_at":"2015-10-29T09:55:25.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-21T00:21:37.618Z","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/zoubin.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-10-29T07:13:18.000Z","updated_at":"2015-10-29T09:39:04.000Z","dependencies_parsed_at":"2022-08-28T21:41:52.207Z","dependency_job_id":null,"html_url":"https://github.com/zoubin/gulp-spritesmith-meta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zoubin/gulp-spritesmith-meta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fgulp-spritesmith-meta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fgulp-spritesmith-meta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fgulp-spritesmith-meta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fgulp-spritesmith-meta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoubin","download_url":"https://codeload.github.com/zoubin/gulp-spritesmith-meta/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fgulp-spritesmith-meta/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33142284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11T05:08:26.174Z","updated_at":"2026-05-17T14:34:59.378Z","avatar_url":"https://github.com/zoubin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-spritesmith-meta\ngulp plugin for creating sprites and their meta files using [spritesmith](https://github.com/Ensighten/spritesmith)\n\n[![npm](https://nodei.co/npm/gulp-spritesmith-meta.png?downloads=true)](https://www.npmjs.org/package/gulp-spritesmith-meta)\n\n[![version](https://img.shields.io/npm/v/gulp-spritesmith-meta.svg)](https://www.npmjs.org/package/gulp-spritesmith-meta)\n[![status](https://travis-ci.org/zoubin/gulp-spritesmith-meta.svg?branch=master)](https://travis-ci.org/zoubin/gulp-spritesmith-meta)\n[![dependencies](https://david-dm.org/zoubin/gulp-spritesmith-meta.svg)](https://david-dm.org/zoubin/gulp-spritesmith-meta)\n[![devDependencies](https://david-dm.org/zoubin/gulp-spritesmith-meta/dev-status.svg)](https://david-dm.org/zoubin/gulp-spritesmith-meta#info=devDependencies)\n\nIt creates a sprite and a JSON file, which includes coordinates of the icons.\n\n## Example\n\nSee [examples](https://github.com/zoubin/gulp-spritesmith-meta/tree/master/example)\n\ninput:\n\n```\n⌘ tree src/\nsrc/\n├── one\n│   ├── sprite1.png\n│   ├── sprite2.jpg\n│   └── sprite3.png\n└── two\n    ├── sprite1.png\n    ├── sprite2.jpg\n    └── sprite3.png\n\n```\n\noutput:\n```\n⌘ tree build/\nbuild/\n├── one.json\n├── one.png\n├── two.json\n└── two.png\n\n```\n\none.json:\n\n```json\n{\n  \"width\": 150,\n  \"height\": 200,\n  \"name\": \"one\",\n  \"coordinates\": {\n    \"sprite1.png\": {\n      \"x\": 100,\n      \"y\": 0,\n      \"width\": 50,\n      \"height\": 50\n    },\n    \"sprite3.png\": {\n      \"x\": 0,\n      \"y\": 0,\n      \"width\": 100,\n      \"height\": 200\n    },\n    \"sprite2.jpg\": {\n      \"x\": 100,\n      \"y\": 50,\n      \"width\": 50,\n      \"height\": 50\n    }\n  }\n}\n\n```\n\n\n## Options\n\n### spritesmith\n\nType: `Function`, `Object`\n\nDefault: `null`\n\nOptions passed to [spritesmith](https://github.com/Ensighten/spritesmith)\n\nIf `Function`,\nit receives the sprite name,\nand the file paths of all the icons the sprite contains.\nShould return an object.\n\n\n### getSpriteName(iconPath)\n\nSpecify which group the given icon should be put into\n\nReceives the file path of the icon.\n\nShould return a group id.\nBy Default, id is the name of directory where it lie.\n\n### getFileOption(opts)\n\nSpecify the options to create the File object for the sprite or the meta file.\n\noptions:\n\n#### name\nThe id of the sprite.\n\nType: `String`\n\n#### type\n`.png` for the sprite, and `.json` for the meta file.\n\n#### icons\nFile paths of the icons in a sprite\n\nType: `Array`\n\n#### contents\nFile contents for the sprite or the meta file.\n\nType: `Buffer`\n\n### getIconName(iconPath)\n\nSpecify the key in the meta file for the given icon.\n\nThe basename is used by default.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Fgulp-spritesmith-meta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoubin%2Fgulp-spritesmith-meta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Fgulp-spritesmith-meta/lists"}