Socket
Socket
Sign inDemoInstall

gulp-svg2png

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-svg2png - npm Package Compare versions

Comparing version 0.2.4 to 0.3.0

.zedstate

19

HISTORY.md

@@ -0,1 +1,5 @@

# 0.3.0 (2014-07-09)
* Option for displaying treatment logs ([#5](https://github.com/akoenig/gulp-svg2png/issues/5))
# 0.2.4 (2014-07-09)

@@ -7,24 +11,23 @@

- Retain folder hierarchy.
- Implemented UUID for temp file naming.
* Retain folder hierarchy.
* Implemented UUID for temp file naming.
# Version 0.2.2 (2014-02-21)
- Added more files to .npmignore.
* Added more files to .npmignore.
# Version 0.2.1 (2014-02-18)
- [Bugfix] See [#3](https://github.com/akoenig/gulp-svg2png/issues/3) for further information.
* [Bugfix] See [#3](https://github.com/akoenig/gulp-svg2png/issues/3) for further information.
# Version 0.2.0 (2014-02-13)
- [Feature] Implemented option for passing the scaling factor.
* [Feature] Implemented option for passing the scaling factor.
# Version 0.1.1 (2014-02-12)
- README modification.
* README modification.
# Version 0.1.0 (2014-02-11)
- Initial Release.
* Initial Release.

@@ -27,7 +27,13 @@ /*

*
* @param {number} scale (optional) The scaling factor.
* @param {number} scale (optional) The scaling factor.
* @param {boolean} verbose (optional) Should the progress be logged?
*
*/
module.exports = function (scale) {
module.exports = function (scale, verbose) {
if ('boolean' === typeof scale) {
verbose = scale;
scale = undefined;
}
scale = scale || 1.0;

@@ -50,3 +56,3 @@

*
* @param {string} message The error message
* @param {string} message The error message
*

@@ -59,2 +65,15 @@ */

/**
* Wrapper around gutil logger.
* Logs if logging is enabled.
*
* @param {string} message The log message
*
*/
function log (message) {
if (verbose) {
gutil.log(message);
}
}
/**
* UUID generator

@@ -126,2 +145,4 @@ *

log('Converted file: ' + png.path);
cb(null, png);

@@ -128,0 +149,0 @@ }

{
"name": "gulp-svg2png",
"version": "0.2.4",
"version": "0.3.0",
"description": "A gulp plugin for converting SVGs to PNGs.",

@@ -5,0 +5,0 @@ "author": {

@@ -28,3 +28,3 @@ # gulp-svg2png [![Build Status](https://travis-ci.org/akoenig/gulp-svg2png.png?branch=master)](https://travis-ci.org/akoenig/gulp-svg2png)

### svg2png([scaling])
### svg2png([scaling, verbose])

@@ -35,2 +35,6 @@ `scaling`

`verbose`
Logs progress information (optional; default=false)
## Changelog

@@ -42,2 +46,2 @@

Copyright 2014, [André König](http://iam.andrekoenig.info) (andre.koenig@posteo.de)
Copyright 2014, [André König](http://iam.andrekoenig.info) (andre.koenig@posteo.de)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc