{"id":15547275,"url":"https://github.com/uhop/grunt-tight-sprite","last_synced_at":"2025-04-07T14:11:57.838Z","repository":{"id":12363777,"uuid":"15013116","full_name":"uhop/grunt-tight-sprite","owner":"uhop","description":"Tight 2D packing of images into a sprite with a corresponding CSS.","archived":false,"fork":false,"pushed_at":"2025-01-28T07:00:05.000Z","size":874,"stargazers_count":60,"open_issues_count":7,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-31T13:18:35.406Z","etag":null,"topics":["css-sprites"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uhop.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-12-07T21:22:27.000Z","updated_at":"2021-06-30T09:05:34.000Z","dependencies_parsed_at":"2025-02-13T23:12:07.325Z","dependency_job_id":"8d60ea59-4628-4a2b-9b35-93fb349b6b84","html_url":"https://github.com/uhop/grunt-tight-sprite","commit_stats":{"total_commits":106,"total_committers":6,"mean_commits":"17.666666666666668","dds":0.2264150943396226,"last_synced_commit":"541c1573a8e8136caeb283de4fc814ed0cabf18a"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhop%2Fgrunt-tight-sprite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhop%2Fgrunt-tight-sprite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhop%2Fgrunt-tight-sprite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhop%2Fgrunt-tight-sprite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uhop","download_url":"https://codeload.github.com/uhop/grunt-tight-sprite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247666014,"owners_count":20975788,"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":["css-sprites"],"created_at":"2024-10-02T13:08:27.079Z","updated_at":"2025-04-07T14:11:57.818Z","avatar_url":"https://github.com/uhop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-tight-sprite\n\n[![Build status][travis-image]][travis-url]\n[![NPM version][npm-image]][npm-url]\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/uhop/grunt-tight-sprite.svg)](https://greenkeeper.io/)\n[![Dependencies][deps-image]][deps-url]\n[![devDependencies][dev-deps-image]][dev-deps-url]\n\n\n\u003e Tight 2D packing of images into a sprite with a corresponding CSS.\n\n## Getting Started\n\nThis plugin requires Grunt `~0.4.1`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-tight-sprite --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-tight-sprite');\n```\n\n## The \"tight_sprite\" task\n\n### Overview\n\nIn your project's Gruntfile, add a section named `tight_sprite` to the data object passed into `grunt.initConfig()`.\n\n```js\nvar iconPath = \"tests/icons/\";\ngrunt.initConfig({\n  tight_sprite: {\n    // describe my sprite #1\n    my_sprite1: {\n      options: {\n        classPrefix: \"\",\n        silent: true,\n        hide: iconPath\n      },\n      src: [iconPath + \"*/**/*.{png,jpg,jpeg,gif}\"],\n      dest: iconPath + \"sprite1.png\"\n    }\n  }\n});\n```\n\n### Documentation\n\nPlease consult [Wiki](https://github.com/uhop/grunt-tight-sprite/wiki) and\n[FAQ](https://github.com/uhop/grunt-tight-sprite/wiki/FAQ).\n\n## Contributing\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n\n- 0.2.7 *refreshed dependencies (Canvas 2!). Thx [Max Motovilov](https://github.com/MaxMotovilov)!*\n- 0.2.6 *refreshed dependencies.*\n- 0.2.5 *refreshed dependencies.*\n- 0.2.4 *refreshed dependencies.*\n- 0.2.3 *new dependencies on Grunt to include its version of 1.0.0.*\n- 0.2.2 *refreshed dependencies.*\n- 0.2.1 *added the ability to pad images.*\n- 0.2.0 *stability fixes, more flexible template options.*\n- 0.1.9 *added the ability to specify dot and path separators.*\n- 0.1.8 *fixed an example.*\n- 0.1.7 *added `hide` option.*\n- 0.1.6 *added arbitrary parameters to a template. Thanks, Vladimir Lugovsky!*\n- 0.1.5 *removed some accidental garbage.*\n- 0.1.4 *accurate work with layouting 0 and 1 rectangle.*\n- 0.1.3 *bugfix.*\n- 0.1.2 *added support for skipping path from CSS class names.*\n- 0.1.1 *added support for file extensions.*\n- 0.1.0 *the initial release.*\n\n## License\n\nBSD\n\n[npm-image]:      https://img.shields.io/npm/v/grunt-tight-sprite.svg\n[npm-url]:        https://npmjs.org/package/grunt-tight-sprite\n[deps-image]:     https://img.shields.io/david/uhop/grunt-tight-sprite.svg\n[deps-url]:       https://david-dm.org/uhop/grunt-tight-sprite\n[dev-deps-image]: https://img.shields.io/david/dev/uhop/grunt-tight-sprite.svg\n[dev-deps-url]:   https://david-dm.org/uhop/grunt-tight-sprite?type=dev\n[travis-image]:   https://img.shields.io/travis/uhop/grunt-tight-sprite.svg\n[travis-url]:     https://travis-ci.org/uhop/grunt-tight-sprite\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuhop%2Fgrunt-tight-sprite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuhop%2Fgrunt-tight-sprite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuhop%2Fgrunt-tight-sprite/lists"}