Gathering detailed insights and metrics for grunt-sprite-glue
Gathering detailed insights and metrics for grunt-sprite-glue
Gathering detailed insights and metrics for grunt-sprite-glue
Gathering detailed insights and metrics for grunt-sprite-glue
npm install grunt-sprite-glue
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
13 Commits
1 Forks
1 Watchers
3 Branches
1 Contributors
Updated on Apr 12, 2017
Latest Version
0.2.0
Package Id
grunt-sprite-glue@0.2.0
Size
6.21 kB
NPM Version
2.7.1
Node Version
1.6.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
5
Sprite generator with Glue & Grunt.
This plugin requires
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins.
Once you're familiar with that process, you may install this plugin with this command:
1grunt.loadNpmTasks('grunt-sprite-glue');
In your project's Gruntfile, add a section named spglue
to the data object passed into grunt.initConfig()
.
1grunt.initConfig({
2 spglue: {
3 options: {
4 // Task-specific options go here.
5 },
6 your_target: {
7 files: {
8 '/path/to/': '/path/images/'
9 }
10 // Target-specific file lists and/or options go here.
11 },
12 },
13});
Type: String
Default value: null
The criteria that glue uses to order the images before adding them to the canvas can be tunned.
Type: Boolean
Default value: false
Optimize our sprite by croping all the unnecessary transparent spaces that the original images could have.
Type: Boolean
Default value: false
Generate both a sprite image and a caat metadata file.
Type: Boolean
Default value: false
Automatically add the hash of the PNG file to the CSS url
Type: String
Default value: null
Insted of using the hash of the PNG as a queryarg it uses it as part of the filename.
Type: Boolean
Default value: false
Only apply filename cachebusting to the sprite image and not to both the CSS and the sprite image.
Type: Boolean
Default value: false
Generate both a sprite image and a xml metadata file compatible with cocos2d.
Type: String
Default value: null
Choose an individual folder for css you.
Type: String
Default value: null
Choose an individual folder for image.
Type: String
Default value: null
You can use your own css template
Type: Boolean
Default value: false
In order to avoid this behaviour you can use force and glue will always build the sprites.
Type: Boolean
Default value: false
Follow symbolic links.
Type: Boolean
Default value: false
Generate a test html per sprite using all the available CSS classes. This option is only useful for testing purposes.
Type: Boolean
Default value: false
Generate both a sprite image and a json metadata file.
Type: String
Default value: null
You can customize how the generated JSON will look. You can choose between array and hash.
Type: Boolean
Default value: false
Glue can also create .less files
Type: String
Default value: null
You can use your own less template
Type: Number
Default value: null
If you want to spread the images around the sprite but you don’t want to count this space as image width/height.
Type: String
Default value: null
your own namespace you can override the default one.
Type: Boolean
Default value: false
Don’t create any sprite image.
Type: Boolean
Default value: false
Don’t create any CSS file.
Type: String
Default value: null
Before processing the images using the algorithm glue orders the images.
Type: Number
Default value: null
If you want to add the same padding around all images.
Type: Boolean
Default value: false
By using the flag png8 the output image format will be png8 instead of png32.
Type: Boolean
Default value: false
Generate several sprites for a project.
Type: String
Default value: null
using the filename of the source images you can customize the pseudo class related to the images.
Type: Boolean
Default value: false
This flag will make glue suppress all console output.
Type: Boolean
Default value: false
Read directories recursively and add all the images to the same sprite.
Type: String
Default value: null
Automatically scale down your sprites to automatically fit them into low-dpi devices.
Type: Boolean
Default value: false
The option retina is only a shortcut for ratios=2,1.
Type: String
Default value: null
Source directory.
Type: String
Default value: null
Output directory.
Type: Boolean
Default value: false
Glue can also create .scss files.
Type: String
Default value: null
You can use your own scss template
Type: String
Default value: null
Separator for the CSS class names.
Type: String
Default value: null
Sprite’s name as past of the CSS class namespace.
Type: String
Default value: null
PNG file name the relative url between the CSS and the PNG file.
Type: Boolean
Default value: false
While you are developing a site it could be quite frustrating running Glue.
spglue: {
options: {
},
dev: {
options: {
project: true,
scss: true
},
files: {
'css/sass': 'images/sprites'
}
}
}
(Nothing yet)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More