Gathering detailed insights and metrics for @beezyinc/grunt-dr-svg-sprites-bz
Gathering detailed insights and metrics for @beezyinc/grunt-dr-svg-sprites-bz
Gathering detailed insights and metrics for @beezyinc/grunt-dr-svg-sprites-bz
Gathering detailed insights and metrics for @beezyinc/grunt-dr-svg-sprites-bz
Grunt plugin to create SVG sprites with PNG fallbacks at needed sizes
npm install @beezyinc/grunt-dr-svg-sprites-bz
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
65 Commits
1 Watchers
2 Branches
Updated on Mar 15, 2021
Latest Version
1.0.4
Package Id
@beezyinc/grunt-dr-svg-sprites-bz@1.0.4
Unpacked Size
8.34 kB
Size
3.29 kB
File Count
5
NPM Version
8.1.2
Node Version
16.13.2
Published on
Feb 15, 2023
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
2
2

Grunt plugin to create SVG sprites with PNG fallbacks at needed sizes
This plugin requires Grunt ~0.4.1
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:
1npm install grunt-dr-svg-sprites --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
1grunt.loadNpmTasks('grunt-dr-svg-sprites');
In your project's Gruntfile, add a section named dr-svg-sprites
to the data object passed into grunt.initConfig()
.
1grunt.initConfig({ 2 "dr-svg-sprites": { 3 options: { 4 // Task-specific options go here. 5 }, 6 }, 7});
The options are inherited from dr-svg-sprites with the following differences:
This will automatically be the target name. No need to manually add it.
Type: String
The base path of the elements to be sprited.
If set in the target options it will overwrite the global options.
If set on the uppermost options property the target name will automatically be appended to the path:
1grunt.initConfig({ 2 "dr-svg-sprites": { 3 options: { 4 spriteElementPath: "img", 5 // more options 6 }, 7 shapes: { 8 options: { 9 // more options 10 } 11 } 12 } 13});
Will result in: img/shapes
.
... and a file structure like:
img
|- shapes
|- circle.svg
|- square.svg
|- triangle.svg
... you would get the resulting sprite for shapes
.
1grunt.initConfig({ 2 "dr-svg-sprites": { 3 tv: { 4 options: { 5 spriteElementPath: "img/logos/tv", 6 spritePath: "img/sprites/dr-logos-tv-sprite.svg", 7 cssPath: "css/dr-logos-tv-sprite.css" 8 } 9 } 10 } 11});
1grunt.initConfig({ 2 "dr-svg-sprites": { 3 options: { 4 spriteElementPath: "img/logos", 5 spritePath: "img/sprites", 6 cssPath: "css", 7 prefix: "dr-logos" 8 }, 9 tv: { 10 options: { 11 sizes: { 12 large: 24, 13 small: 16 14 }, 15 refSize: "large", 16 unit: 6 17 } 18 }, 19 radio: { 20 options: { 21 sizes: { 22 small: 16 23 }, 24 refSize: 24, 25 unit: 12, 26 cssUnit: "rem" 27 } 28 } 29 } 30});
Changes:
Changes:
Changes:
dr-svg-sprites
instead of svg-sprites
to allow smoother usage with more strict grunt task loaders like jit-grunt. The svg-sprites
name is not yet deprecated though - both names can be used.Changes:
Important! Renamed repo and npm module to grunt-dr-svg-sprites
inlining with standard naming convention for grunt tasks. dr-grunt-svg-sprites
is now deprecated.
Features:
options.cssPprefix
added.Features:
Changes:
options.paths
properties have become: spriteElementPath
, spritePath
and cssPath
.options.sprites
should now be configured as separate targets.Bug fixes:
Features:
options.prefix
will now affect classnames also.options.refSize
is now no longer limited to sizes defined in options.sizes
; it can take a raw number.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 0/30 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
license file not detected
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