Permalink
Browse files

Rename to optipng-bin

  • Loading branch information...
1 parent ce3de43 commit 273df736d43626ba4c387428cbf29a5b5d720db9 @sindresorhus sindresorhus committed Dec 6, 2012
@@ -1,7 +1,7 @@
#!/usr/bin/env node
var spawn = require('child_process').spawn;
-var binPath = require('../lib/optipng').path;
+var binPath = require('../lib/optipng-bin').path;
spawn(binPath, process.argv.slice(2), { stdio: 'inherit' })
.on('exit', process.exit);
File renamed without changes.
View
@@ -1,20 +1,20 @@
{
- "name": "optipng",
+ "name": "optipng-bin",
"version": "0.1.0",
"description": "OptiPNG wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows",
"keywords": ["png", "compress", "minify", "optimize", "img", "image"],
- "homepage": "https://github.com/yeoman/node-optipng",
- "bugs": "https://github.com/yeoman/node-optipng/issues",
+ "homepage": "https://github.com/yeoman/node-optipng-bin",
+ "bugs": "https://github.com/yeoman/node-optipng-bin/issues",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
- "main": "lib/optipng.js",
- "bin": "bin/optipng",
+ "main": "lib/optipng-bin.js",
+ "bin": "bin/optipng-bin",
"repository": {
"type": "git",
- "url": "git://github.com/yeoman/node-optipng.git"
+ "url": "git://github.com/yeoman/node-optipng-bin.git"
},
"scripts": {
"test": "node node_modules/mocha/bin/mocha test/test-*.js"
View
@@ -1,4 +1,4 @@
-# node-optipng [![Build Status](https://secure.travis-ci.org/yeoman/node-optipng.png?branch=master)](http://travis-ci.org/yeoman/node-optipng)
+# node-optipng-bin [![Build Status](https://secure.travis-ci.org/yeoman/node-optipng-bin.png?branch=master)](http://travis-ci.org/yeoman/node-optipng-bin)
[OptiPNG](http://optipng.sourceforge.net) 0.7.4 Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows. Used to losslessly minify PNG images.
@@ -7,14 +7,14 @@
```js
var execFile = require('child_process').execFile;
-var optipngPath = require('optipng').path;
+var optipngPath = require('optipng-bin').path;
execFile(optipngPath, ['-v'], function(err, stdout, stderr) {
console.log('OptiPNG version:', stdout.match(/\d\.\d.\d/)[0]);
});
```
-You can also run it directly from `./node_modules/.bin/optipng`
+You can also run it directly from `./node_modules/.bin/optipng-bin`
## License
@@ -12,7 +12,7 @@ describe('OptiPNG', function() {
});
it('should return path to OptiPNG binary', function(cb) {
- var binPath = require('../lib/optipng.js').path;
+ var binPath = require('../lib/optipng-bin.js').path;
execFile(binPath, ['-v'], function(err, stdout) {
assert(stdout.indexOf('OptiPNG') !== -1);
@@ -21,7 +21,7 @@ describe('OptiPNG', function() {
});
it('should proxy OptiPNG', function(cb) {
- var binPath = path.join(__dirname, '../bin/optipng');
+ var binPath = path.join(__dirname, '../bin/optipng-bin');
execFile(binPath, ['-v'], function(err, stdout) {
assert(stdout.indexOf('OptiPNG') !== -1);
@@ -30,7 +30,7 @@ describe('OptiPNG', function() {
});
it('should minify a .png', function(cb) {
- var binPath = path.join(__dirname, '../bin/optipng');
+ var binPath = path.join(__dirname, '../bin/optipng-bin');
var args = [
'-strip',
'all',

0 comments on commit 273df73

Please sign in to comment.