{"_id":"@speee/iiopt","_rev":"25-df3baea116400a40a55fb8bd67163036","name":"@speee/iiopt","time":{"modified":"2022-06-13T00:07:54.635Z","created":"2018-01-10T05:22:13.680Z","0.1.0":"2018-01-10T05:22:13.680Z","0.1.1":"2018-01-10T05:53:55.716Z","0.1.2":"2018-01-10T06:12:58.510Z","0.1.3":"2018-01-10T06:20:29.971Z","0.1.4":"2018-01-10T06:59:13.097Z","0.1.5":"2018-01-11T02:27:28.239Z","0.1.6":"2018-01-11T05:59:23.466Z","0.2.0":"2018-01-22T07:14:12.625Z","0.3.0":"2018-02-01T05:12:57.212Z","0.4.0":"2018-02-07T07:17:23.140Z"},"maintainers":[{"email":"selmertsx@gmail.com","name":"shuhei.morioka"},{"email":"g.psy.va@gmail.com","name":"gfx"}],"dist-tags":{"latest":"0.4.0"},"description":"(iikanji ni)nice image optimizer ","readme":"# iiopt\n\niiopt is a npm package that reduces the sizes of images by compressing them using [pngquant](https://pngquant.org/) and [mozjpeg](https://github.com/mozilla/mozjpeg).\nThe compression levels in these tools are fixed to 85.\n\n## Install\n\n*Iiopt requires Node 8 or later.*\n\niiopt needs [imagemagick](http://www.imagemagick.org/script/index.php).\nIn MacOSX, you can install them by using [HomeBrew](https://brew.sh/).\n\n```\nbrew install imagemagick\n```\n\nThen, install @speee/iiopt using npm:\n\n```\n$ npm install @speee/iiopt\n```\n\n## Usage\n\n```\n$ iiopt --help\n  (iikanji ni)nice image optimizer\n\n  Usage\n    $ iiopt <file>\n    $ iiopt <file> --out-dir <output>\n    $ iiopt --install-git-hooks\n  Option\n    --install-git-hooks, install script that hooks git pre-commit to compress image automatically\n    --overwrite, -o  overwrite images\n    --apply-new-files, compress images before git commit.\n    --detect-new-raw-images-from, detecting new raw images in a current working branch.\n  Example\n    $ iiopt images/sample.jpg --out-dir ./compressed # compressed images, and the results are stored into ./compressed directory\n    $ iiopt foo.png -o # overwrite foo.png with compressed image\n```\n\n### iiopt --install-git-hooks\n\n\n`iiopt --install-git-hooks` command embed the following script into the git pre-commit hook.\n\n```.git/hooks/pre-commit\n#!/bin/sh -e\nnpx iiopt --apply-new-files\n```\n\n`iiopt --apply-new-files` is a command that compress png and jpg images stored in the git staging area.\n\nNotice:\nCurrently, also compressed images were recompressed when these were staged.\nIf you want to commit already compressed images, use `git commit --no-verify` to skip the git pre-commit hook.\n\n\n### Detecting new raw images in a current working branch.\n\niiopt also has a feature that detects unoptimized images in a current working branch.\nThe feature is run by the following command.\n\n```\niiopt --detect-new-raw-images-from=${branch}\n```\n\nFor `${branch}`, you enter the name of the branch to which you want to merge.(ex master, development)\n\n## Images\n\nSample images in this repository are copied from below sites.  They are royalty-free.\n\n- http://www.irasutoya.com/\n- http://en.freejpg.com.ar/\n\n## License\n\nThis repository is under the [MIT License](LICENSE.md).\n","versions":{"0.1.4":{"name":"@speee/iiopt","version":"0.1.4","description":"(iikanji ni)nice image optimizer ","author":{"name":"shuhei.morioka"},"license":"MIT","bin":{"iiopt":"./bin/cli"},"scripts":{"build":"yarn tsc","test":"yarn build && yarn jest","lint":"tslint 'src/**/*.ts'"},"jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","modulePathIgnorePatterns":["/build/","/node_modules/"],"moduleFileExtensions":["ts","tsx","js","jsx","json"]},"devDependencies":{"@types/jest":"^21.1.10","@types/node":"^8.5.2","execa":"^0.8.0","jest":"^22.0.4","ts-jest":"^22.0.0","ts-node":"^4.1.0","tslint":"^5.8.0","typescript":"^2.6.2"},"dependencies":{"imagemin":"^5.3.1","imagemin-mozjpeg":"^6.0.0","imagemin-pngquant":"^5.0.1","meow":"^4.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2018 Morioka Shuhei and Speee, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@speee/iiopt@0.1.4","dist":{"shasum":"de843a333a20f0bec21864489c289e909f94f41b","tarball":"https://registry.npmjs.org/@speee/iiopt/-/iiopt-0.1.4.tgz","integrity":"sha512-FEyHAmEcGxQshMLOc6DFmwPKEmAwL6EEsLhmTVc+RDKt+YJoG3pHAQV/4aRKDoR8/otM48u0J0L8r4E/SeZpLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBAMsbhRmoYFFHp5raovjq+NWFwWs5XyAS9DJ4xdxYs5AiEAwUTy2hNj5vW3F/3zFXS1KIH92YF+LoNBxPnFUov+Enw="}]},"maintainers":[{"name":"gfx","email":"g.psy.va@gmail.com"},{"name":"shuhei.morioka","email":"selmertsx@gmail.com"}],"_npmUser":{"name":"shuhei.morioka","email":"selmertsx@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iiopt-0.1.4.tgz_1515567552970_0.13471644092351198"},"directories":{}},"0.1.5":{"name":"@speee/iiopt","version":"0.1.5","description":"(iikanji ni)nice image optimizer ","author":{"name":"shuhei.morioka"},"license":"MIT","bin":{"iiopt":"./bin/cli"},"scripts":{"build":"yarn tsc","test":"yarn build && yarn jest","lint":"tslint 'src/**/*.ts'"},"files":["build","bin"],"main":"./build/cli.js","repository":{"type":"git","url":"git+https://github.com/speee/iiopt.git"},"keywords":["png","jpg","jpeg","pngquant","mozjpeg","image"],"bugs":{"url":"https://github.com/speee/iiopt/issues"},"homepage":"https://github.com/speee/iiopt","jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","modulePathIgnorePatterns":["/build/","/node_modules/"],"moduleFileExtensions":["ts","tsx","js","jsx","json"]},"devDependencies":{"@types/jest":"^21.1.10","@types/node":"^8.5.2","execa":"^0.8.0","jest":"^22.0.4","ts-jest":"^22.0.0","ts-node":"^4.1.0","tslint":"^5.8.0","typescript":"^2.6.2"},"dependencies":{"imagemin":"^5.3.1","imagemin-mozjpeg":"^6.0.0","imagemin-pngquant":"^5.0.1","meow":"^4.0.0"},"gitHead":"9c839ef8a69bd2d8ff60921a2c8624d1028180c0","_id":"@speee/iiopt@0.1.5","_npmVersion":"5.6.0","_nodeVersion":"6.10.3","_npmUser":{"name":"shuhei.morioka","email":"selmertsx@gmail.com"},"dist":{"integrity":"sha512-p7aGVm8fLsE7lFo996C44HxmGkFWIm6kuXA1t9e/Fmbj6k4ce1fiLy4FtebRATszOKWUU4GoBLDr2eOMfW6WwQ==","shasum":"d93c138ba2898f365af68077266496f3534a4ef6","tarball":"https://registry.npmjs.org/@speee/iiopt/-/iiopt-0.1.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF+TqiUAS6aUfyevpf0+9Ejas2k5lE9CQXyPdatno27QAiBw9oj2apPrEh2aG6AZDqr9GbkE27WjHwmOVcA+mZHFOQ=="}]},"maintainers":[{"name":"gfx","email":"g.psy.va@gmail.com"},{"name":"shuhei.morioka","email":"selmertsx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iiopt-0.1.5.tgz_1515637648175_0.4636839141603559"},"directories":{}},"0.1.6":{"name":"@speee/iiopt","description":"(iikanji ni)nice image optimizer ","version":"0.1.6","author":{"name":"shuhei.morioka"},"bin":{"iiopt":"./bin/cli"},"bugs":{"url":"https://github.com/speee/iiopt/issues"},"dependencies":{"imagemin":"^5.3.1","imagemin-mozjpeg":"^6.0.0","imagemin-pngquant":"^5.0.1","meow":"^4.0.0"},"devDependencies":{"@types/jest":"^21.1.10","@types/node":"^8.5.2","execa":"^0.8.0","jest":"^22.0.4","ts-jest":"^22.0.0","ts-node":"^4.1.0","tslint":"^5.8.0","typescript":"^2.6.2"},"files":["build","bin"],"homepage":"https://github.com/speee/iiopt","jest":{"transform":{"^.+\\.tsx?$":"ts-jest"},"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","modulePathIgnorePatterns":["/build/","/node_modules/"],"moduleFileExtensions":["ts","tsx","js","jsx","json"]},"keywords":["image","jpeg","jpg","mozjpeg","png","pngquant"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/speee/iiopt.git"},"scripts":{"build":"yarn tsc","lint":"tslint 'src/**/*.ts'","test":"yarn build && yarn jest"},"gitHead":"f2a565c2f3c68472b2c4b12ed5d14ca8e0965266","_id":"@speee/iiopt@0.1.6","_npmVersion":"5.6.0","_nodeVersion":"6.10.3","_npmUser":{"name":"shuhei.morioka","email":"selmertsx@gmail.com"},"dist":{"integrity":"sha512-iiXk3zTGE9BKJB+Wo0ergMe7Q5YdYLg8BOs3lJMip21cA5JhoUK99WWidavcZBqhrPiGQt5PuZWkRezzd9JfjA==","shasum":"937c2fae56a1a0e6f949dcb6806c0b206a63392f","tarball":"https://registry.npmjs.org/@speee/iiopt/-/iiopt-0.1.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFt78cYeYO858b9I29t9KJrS83EL6zUGYjCdEjAFZJ7IAiEA66XqwnkrqRsHRXbQ4eSDgIRjz/vbk6fp9Aafmp4polM="}]},"maintainers":[{"name":"gfx","email":"g.psy.va@gmail.com"},{"name":"shuhei.morioka","email":"selmertsx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iiopt-0.1.6.tgz_1515650363373_0.48410943686030805"},"directories":{}},"0.2.0":{"name":"@speee/iiopt","description":"(iikanji ni)nice image optimizer ","version":"0.2.0","author":{"name":"shuhei.morioka"},"bin":{"iiopt":"./bin/cli"},"bugs":{"url":"https://github.com/speee/iiopt/issues"},"dependencies":{"imagemin":"^5.3.1","imagemin-mozjpeg":"^6.0.0","imagemin-pngquant":"^5.0.1","meow":"^4.0.0"},"devDependencies":{"@types/jest":"^21.1.10","@types/node":"^8.5.2","execa":"^0.8.0","jest":"^22.0.4","ts-jest":"^22.0.0","ts-node":"^4.1.0","tslint":"^5.8.0","typescript":"^2.6.2"},"files":["build","bin"],"homepage":"https://github.com/speee/iiopt","keywords":["image","jpeg","jpg","mozjpeg","png","pngquant"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/speee/iiopt.git"},"scripts":{"build":"tsc","lint":"tslint 'src/**/*.ts'","test":"yarn build && yarn jest"},"gitHead":"c304629227cb7834f4de8409a6a330e9297532ac","_id":"@speee/iiopt@0.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"shuhei.morioka","email":"selmertsx@gmail.com"},"dist":{"integrity":"sha512-10/Ed9fvD4jhLmPCP9VOsWV+OdN07GkFlaeC5Sy3seZi5pOaRBZqtagyQvfOaNkOjqZplgU5hasIkB0Z6vXOig==","shasum":"f14ed48966622a6eeccfd8267822ec9be86a1365","tarball":"https://registry.npmjs.org/@speee/iiopt/-/iiopt-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhCjBWpGbnDLwx9F5hRDp1+ruffxRbPyxaGqELW2GtQAIgM4j/JbLSg5/pn74xQnPJqkPGpPmVs+NQTWPttZ9Yrdk="}]},"maintainers":[{"name":"gfx","email":"g.psy.va@gmail.com"},{"name":"shuhei.morioka","email":"selmertsx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iiopt-0.2.0.tgz_1516605252426_0.45348708680830896"},"directories":{}},"0.3.0":{"name":"@speee/iiopt","description":"(iikanji ni)nice image optimizer ","version":"0.3.0","author":{"name":"shuhei.morioka"},"bin":{"iiopt":"./bin/cli"},"bugs":{"url":"https://github.com/speee/iiopt/issues"},"dependencies":{"imagemin":"^5.3.1","imagemin-mozjpeg":"^6.0.0","imagemin-pngquant":"^5.0.1","meow":"^4.0.0","pngjs":"^3.3.1"},"devDependencies":{"@types/jest":"^21.1.10","@types/node":"^8.5.2","execa":"^0.8.0","jest":"^22.0.4","ts-jest":"^22.0.0","ts-node":"^4.1.0","tslint":"^5.8.0","typescript":"^2.6.2"},"engines":{"node":">=8"},"files":["build","bin"],"homepage":"https://github.com/speee/iiopt","keywords":["image","jpeg","jpg","mozjpeg","png","pngquant"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/speee/iiopt.git"},"scripts":{"build":"tsc","lint":"tslint 'src/**/*.ts'","test":"yarn build && yarn jest --runInBand"},"gitHead":"b09e0f9cc17a303c7aabfd8e55df3def525172d3","_id":"@speee/iiopt@0.3.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"shuhei.morioka","email":"selmertsx@gmail.com"},"dist":{"integrity":"sha512-V6orCd1oPNTC+lkrsuADG0wH2hSdgU4kwfzFUo1hV+s+x7d37bLXpTFDbReHzxLBoex1nP5HS03QJbqtDilrCw==","shasum":"fba08613a9ff003a9fa88281d08ca924bfcbc4fa","tarball":"https://registry.npmjs.org/@speee/iiopt/-/iiopt-0.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDY4b30lgR0m8JqpuSk2mVxiWgO81yW+7NVPxZkD0SSBAIhAKn1hbIF4PAiM2Le9XpsvoSs3CbZrNhKYwl5a1zIRFKc"}]},"maintainers":[{"name":"gfx","email":"g.psy.va@gmail.com"},{"name":"shuhei.morioka","email":"selmertsx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iiopt-0.3.0.tgz_1517461976947_0.507402656134218"},"directories":{}},"0.4.0":{"name":"@speee/iiopt","description":"(iikanji ni)nice image optimizer ","version":"0.4.0","author":{"name":"shuhei.morioka"},"bin":{"iiopt":"./bin/cli"},"bugs":{"url":"https://github.com/speee/iiopt/issues"},"dependencies":{"imagemin":"^5.3.1","imagemin-mozjpeg":"^6.0.0","imagemin-pngquant":"^5.0.1","meow":"^4.0.0","pngjs":"^3.3.1"},"devDependencies":{"@types/jest":"^21.1.10","@types/node":"^8.5.2","execa":"^0.8.0","jest":"^22.0.4","prettier":"1.10.2","ts-jest":"^22.0.0","ts-node":"^4.1.0","tslint":"^5.8.0","tslint-plugin-prettier":"1.3.0","typescript":"^2.6.2"},"engines":{"node":">=8"},"files":["build","bin"],"homepage":"https://github.com/speee/iiopt","keywords":["image","jpeg","jpg","mozjpeg","png","pngquant"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/speee/iiopt.git"},"scripts":{"build":"tsc","lint":"tslint 'src/**/*.ts' '__tests__/**/*.ts'","test":"yarn build && yarn jest --runInBand"},"gitHead":"ea4854229170625aa54c5a1b746d2481f99c373e","_id":"@speee/iiopt@0.4.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"shuhei.morioka","email":"selmertsx@gmail.com"},"dist":{"integrity":"sha512-PIVtwhFOAU4QRpis0FtqSIjamkC+NIr+8fPOKlaAf69wk2aefOuftNeWgJ3qerr5e61rRi1UCmjYvR9qq1RBpQ==","shasum":"c1b6fb34ab883148fcd1ad2f7625a39ed0f95e41","tarball":"https://registry.npmjs.org/@speee/iiopt/-/iiopt-0.4.0.tgz","fileCount":15,"unpackedSize":45166,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFHwJKP+2A1ZubBI7DYsLRl836C13WbY60GTaaPXywxUAiAvG8t4XmYgtxQxR0y5bRjhP6Flnp3FetXeTwiE6HUo3w=="}]},"maintainers":[{"name":"gfx","email":"g.psy.va@gmail.com"},{"name":"shuhei.morioka","email":"selmertsx@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/iiopt_0.4.0_1517987843062_0.9605253351157448"},"_hasShrinkwrap":false}},"author":{"name":"shuhei.morioka"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/speee/iiopt","keywords":["image","jpeg","jpg","mozjpeg","png","pngquant"],"repository":{"type":"git","url":"git+https://github.com/speee/iiopt.git"},"bugs":{"url":"https://github.com/speee/iiopt/issues"}}