Skip to content

Commit

Permalink
Fix node package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwon Hyungjoo committed May 12, 2018
1 parent 58184d3 commit 10f0eca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Those argument is same as cjpeg.

If you are using node.js, you can use like below.
```javascript
var mozjpeg = require("mozjpeg.js");
var mozjpeg = require("js-mozjpeg");
// ~~~
var output_cjpeg = mozjpeg.cjpeg(input, ["-quality", "85"]);
var output_djpeg = mozjpeg.djpeg(input, ["-grayscale"]);
Expand All @@ -92,11 +92,11 @@ var output_jpegtran = mozjpeg.jpegtran(input, ["-rotate", "90"]);

### Node.js
```
$ npm i -S mozjpeg.js
$ npm i -S js-mozjpeg
```

```javascript
var mozjpeg = require("mozjpeg.js");
var mozjpeg = require("js-mozjpeg");
// mozjpeg-js is already exist.
var fs = require("fs");

Expand Down

0 comments on commit 10f0eca

Please sign in to comment.