From 10f0eca023107b090efac587e5bb4534468cf907 Mon Sep 17 00:00:00 2001 From: Kwon Hyungjoo Date: Sun, 13 May 2018 07:52:50 +0900 Subject: [PATCH] Fix node package name --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fd0cb41..de865e7 100644 --- a/README.md +++ b/README.md @@ -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"]); @@ -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");