Gathering detailed insights and metrics for adz-spritesmith-cli
Gathering detailed insights and metrics for adz-spritesmith-cli
Gathering detailed insights and metrics for adz-spritesmith-cli
Gathering detailed insights and metrics for adz-spritesmith-cli
npm install adz-spritesmith-cli
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
38 Stars
31 Commits
13 Forks
3 Watching
1 Branches
3 Contributors
Updated on 06 Aug 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-27.8%
13
Compared to previous day
Last week
-19.2%
59
Compared to previous week
Last month
12.4%
345
Compared to previous month
Last year
0%
3,176
Compared to previous year
Adds a CLI to the spritesmith module
Spritesmith is awesome but sometimes we don't want to run it through Grunt.
1npm install -D spritesmith-cli
1spritesmith [options]
These are the options you can set on the CLI.
Option | Description |
---|---|
--rc | Point to a different .spritesmith.js configuration file |
The default configuration file used will be .spritesmith.js
at the current working directory (process.cwd()
). This file should export a few properties. Note that you can export either a single object or an array. If you use an array you'll be able to create multiple spritesheets in one shot.
Examples:
1'use strict'; 2 3var util = require('util'); 4 5module.exports = { 6 src: './client/img/icons/**/*.{png,gif,jpg}', 7 destImage: '.bin/public/img/icons.png', 8 destCSS: 'client/css/generated/icons.css', 9 imgPath: '/img/icons.png', 10 padding: 2, 11 algorithm: 'top-down', 12 algorithmOpts: { sort: false }, 13 engine: 'gmsmith', 14 cssOpts: { 15 cssClass: function (item) { 16 return util.format('.ic-%s:before', item.name); 17 } 18 } 19};
1'use strict'; 2 3var util = require('util'); 4 5module.exports = [{ 6 src: './client/img/icons/**/*.{png,gif,jpg}', 7 destImage: '.bin/public/img/icons.png', 8 destCSS: 'client/css/generated/icons.css', 9 imgPath: '/img/icons.png', 10 cssOpts: { 11 cssClass: function (item) { 12 return util.format('.ic-%s:before', item.name); 13 } 14 } 15}, { 16 src: './client/img/markdown-editor/**/*.{png,gif,jpg}', 17 destImage: '.bin/public/img/markdown-editor.png', 18 destCSS: 'client/css/generated/markdown-editor.styl', 19 imgPath: '/img/markdown-editor.png', 20 cssOpts: { 21 cssClass: function (item) { 22 return util.format('.pm-%s:before', item.name); 23 } 24 } 25}];
Note that src
can be either a globbing pattern or an array of globbing patterns, it'll be passed straight to multi-glob
.
The destImage
and destCSS
properties are optional and can be omitted.
That means that you can create only one file depending on your needs.
That's about it. For configuration information please refer to the grunt-spritesmith
and spritesmith
packages.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 3/28 approved changesets -- score normalized to 1
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
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
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