{"id":19560114,"url":"https://github.com/plotdb/imagesprite","last_synced_at":"2025-02-26T08:28:11.111Z","repository":{"id":40795080,"uuid":"229402196","full_name":"plotdb/imagesprite","owner":"plotdb","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-10T12:47:46.000Z","size":2096,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T22:41:24.269Z","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/plotdb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-12-21T08:58:50.000Z","updated_at":"2022-10-08T09:09:25.000Z","dependencies_parsed_at":"2023-01-26T07:16:44.730Z","dependency_job_id":null,"html_url":"https://github.com/plotdb/imagesprite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fimagesprite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fimagesprite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fimagesprite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotdb%2Fimagesprite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plotdb","download_url":"https://codeload.github.com/plotdb/imagesprite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240817224,"owners_count":19862448,"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-11T05:06:02.092Z","updated_at":"2025-02-26T08:28:11.066Z","avatar_url":"https://github.com/plotdb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# imagesprite\n\nSVG / PNG sprite generator.\n\n\n## usage\n\ninstall imagesprite:\n\n    npm install @plotdb/imagesprite\n\n\ncommand line usage:\n\n    \n    npx imagesprite-png srcdir [outdir] [name] [webbase]\n    npx imagesprite-svg srcdir [outdir] [name] [webbase]\n\n\nFollowing is the example in `npm run test-build` from our `package.json`:\n\n    npx imagesprite-png test/pngs web/static/assets/img/pack/png png-sprite /assets/img/pack/png\n    npx imagesprite-svg test/svgs web/static/assets/img/pack/svg svg-sprite /assets/img/pack/svg\n\n\nUse with nodejs:\n\n    imagesprite = require(\"@plotdb/imagesprite\");\n    imagesprite.svg(config).then(ret) -\u003e ...\n\n\nconfig:\n\n - `srcdir`: image directory\n - `outdir`: dir for generating sprite image and css\n - `name`: generated file name and css class name\n - `base`: relative path for accessing the sprite image via web.\n\n\nexample:\n\n    imagesprite.svg({\n      root: 'static/assets/img',\n      outdir: 'static/assets/sprite'\n      name: 'svg-sprite',\n      base: '/assets/sprite'\n    })\n\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotdb%2Fimagesprite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplotdb%2Fimagesprite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotdb%2Fimagesprite/lists"}