{"id":13597919,"url":"https://github.com/watergis/sprite-creator","last_synced_at":"2025-04-28T15:42:54.701Z","repository":{"id":109406795,"uuid":"281661229","full_name":"watergis/sprite-creator","owner":"watergis","description":"This module is to generate sprite files from icon images.","archived":false,"fork":false,"pushed_at":"2023-06-22T14:35:02.000Z","size":19,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-22T04:09:18.548Z","etag":null,"topics":["mapbox","sprite","vectortiles"],"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/watergis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["JinIgarashi"],"open_collective":"watergis","custom":["https://www.paypal.me/jinigarashi"]}},"created_at":"2020-07-22T11:39:55.000Z","updated_at":"2024-02-01T16:17:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc348962-4fd3-486a-888c-15156b2cdc96","html_url":"https://github.com/watergis/sprite-creator","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"d6e489627b84eb8d4e40bef8cf23f86e0bede1bb"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fsprite-creator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fsprite-creator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fsprite-creator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fsprite-creator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/watergis","download_url":"https://codeload.github.com/watergis/sprite-creator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250991875,"owners_count":21519399,"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":["mapbox","sprite","vectortiles"],"created_at":"2024-08-01T17:00:43.510Z","updated_at":"2025-04-28T15:42:54.677Z","avatar_url":"https://github.com/watergis.png","language":"JavaScript","funding_links":["https://github.com/sponsors/JinIgarashi","https://opencollective.com/watergis","https://www.paypal.me/jinigarashi"],"categories":["Lincense","4. Deploy Stylefiles and Sprite files to gh-pages"],"sub_categories":["1. Source Code","Create Sprite files"],"readme":"# sprite-creator\n![](https://github.com/watergis/sprite-creator/workflows/Node.js%20Package/badge.svg)\n![GitHub](https://img.shields.io/github/license/watergis/sprite-creator)\n\nThis module is to generate sprite files from icon images.\n\n## Installation\n\n```\nnpm install @watergis/sprite-creator\n```\n\n## Usage\n\n```js\nconst SpriteCreator = require('@watergis/sprite-creator');\n\nconst config = {\n    sprites:[\n      {\n        output_dir: path.resolve(__dirname,'./sprite'), //Output directory path for sprite files\n        icons: [\n          path.resolve(__dirname,'./icons'), //Input directory path for SVG icons\n        ],\n      }\n    ]\n};\n\nconst spriteCreator = new SpriteCreator();\nspriteCreator.build(config.sprites);\n```\n\n## Test\n```\nnpm test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatergis%2Fsprite-creator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatergis%2Fsprite-creator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatergis%2Fsprite-creator/lists"}