Comparing version 0.1.0 to 0.1.1
@@ -0,0 +0,0 @@ #!/usr/bin/env node |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -76,12 +76,4 @@ 'use strict'; | ||
function setPath(target) { | ||
try { | ||
return which.sync(target.name); | ||
} catch (err) { | ||
return getPathToPackagedBinary(target); | ||
} | ||
} | ||
exports.path = setPath(target); | ||
exports.path = getPathToPackagedBinary(target); | ||
exports.url = getPathToPackagedBinary(target, { url: true }); | ||
exports.src = target.src; |
@@ -95,2 +95,2 @@ 'use strict'; | ||
}); | ||
} | ||
}; |
{ | ||
"name": "gifsicle", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "gifsicle wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# node-gifsicle [![Build Status](https://secure.travis-ci.org/yeoman/node-gifsicle.png?branch=master)](http://travis-ci.org/yeoman/node-gifsicle) | ||
gifsicle 1.71 Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows. Most commonly used to manipulate gif images in different ways. | ||
[gifsicle](http://www.lcdf.org/gifsicle/) 1.71 Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows. | ||
> Gifsicle manipulates GIF image files in many different ways. Depending on command line options, it can merge several GIFs into a GIF animation; explode an animation into its component frames; change individual frames in an animation; turn interlacing on and off; add transparency and much more. | ||
> gifsicle manipulates GIF image files in many different ways. Depending on command line options, it can merge several GIFs into a GIF animation; explode an animation into its component frames; change individual frames in an animation; turn interlacing on and off; add transparency and much more. | ||
@@ -14,3 +14,3 @@ | ||
execFile(gifsiclePath, ['-o', 'output.gif', 'input.gif'], function(err, stdout) { | ||
execFile(gifsiclePath, ['-o', 'output.gif', 'input.gif'], function() { | ||
console.log('Image minified'); | ||
@@ -20,3 +20,3 @@ }); | ||
You can also run directly from `./node_modules/.bin/gifsicle` | ||
Can also be run directly from `./node_modules/.bin/gifsicle`. | ||
@@ -28,4 +28,8 @@ | ||
### OS X and Linux | ||
### OS X | ||
Run `npm install` on a OS X 10.7 machine to build the binary. | ||
### Linux | ||
Run `npm install` to build the binary. | ||
@@ -35,5 +39,5 @@ | ||
- Download the [Windows files 32/64-bit](http://www.lcdf.org/gifsicle/) on a Windows machine | ||
- Run the downloaded file to extract | ||
- Go to the `bin` folder at the destination and copy `gifsicle.exe` | ||
- Download the [Windows files 32/64-bit](http://www.lcdf.org/gifsicle/) on a Windows machine. | ||
- Run the downloaded file to extract. | ||
- Go to the `bin` folder at the destination and copy `gifsicle.exe`. | ||
@@ -40,0 +44,0 @@ |
@@ -0,0 +0,0 @@ /*global describe, it */ |
@@ -23,3 +23,3 @@ /*global describe, it, after */ | ||
it('should successfully proxy gifsicle', function (cb) { | ||
var binPath = path.join(__dirname, '../bin/gifsicle'); | ||
var binPath = path.join(__dirname, '../bin/gifsicle.js'); | ||
@@ -33,3 +33,3 @@ execFile('node', [binPath, '--version', '-'], function (err, stdout) { | ||
it('should minify a .gif', function (cb) { | ||
var binPath = path.join(__dirname, '../bin/gifsicle'); | ||
var binPath = path.join(__dirname, '../bin/gifsicle.js'); | ||
var args = [ | ||
@@ -36,0 +36,0 @@ '-o', path.join(__dirname, 'minified.gif'), |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11168
46
250
4