{"_id":"@ammoti/image-reducer","_rev":"1-92690f05618c3a560ac541de9f324c5d","name":"@ammoti/image-reducer","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@ammoti/image-reducer","version":"0.0.1","description":"Image Reducer is a packages which makes easier image compression using imagemin libraries","keywords":["image-compress","imagemin","image compress","npm","ammoti","typescript"],"main":"dist/index.js","typings":"dist/index.d.ts","directories":{"test":"tests","lib":"dist"},"scripts":{"test":"npm run build && jest --coverage --config jest.config.json","prepublishOnly":"npm run test","build":"npm run clean-builds && npm run src-build && npm run tests-build && npm run copy-assets","src-build":"tsc -p tsconfig.json","tests-build":"tsc -p tsconfig.spec.json","rescope":"npm-scope-prefixer -s","lint":"prettier \"src/**/*\" \"tests/**/*\" -l --write && eslint \"src/**/*\" \"tests/**/*\"","copy-assets":"gulp copy-src-assets && gulp copy-tests-assets","clean-builds":"gulp clean-builds"},"repository":{"type":"git","url":"git+https://github.com/ammoti/image-reducer.git"},"engines":{"node":">=10"},"author":{"name":"ammoti","email":"vahap.yigit@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/ammoti/image-reducer/issues"},"homepage":"https://github.com/ammoti/image-reducer#readme","devDependencies":{"@types/jest":"^25.1.4","@types/node":"^13.9.5","@types/yeoman-generator":"^3.1.4","@typescript-eslint/eslint-plugin":"^2.25.0","@typescript-eslint/parser":"^2.25.0","@vaju/npm-scope-prefixer":"^1.2.0","chalk":"^4.0.0","del":"^5.1.0","eslint":"^6.7.0","eslint-config-google":"^0.14.0","eslint-config-prettier":"^6.10.1","gulp":"^4.0.2","gulp-cli":"^2.2.0","jest":"^25.2.3","prettier":"^2.0.2","typescript":"^3.8.3"},"dependencies":{"@types/glob":"^7.1.1","@types/imagemin":"^7.0.0","@types/imagemin-jpegtran":"^5.0.0","@types/imagemin-mozjpeg":"^8.0.0","@types/imagemin-pngquant":"^7.0.0","glob":"^7.1.6","imagemin":"^7.0.1","imagemin-jpegtran":"^6.0.0","imagemin-mozjpeg":"^8.0.0","imagemin-pngquant":"^8.0.0","rename":"^1.0.4","tslib":"^1.11.1"},"gitHead":"bc37fbfceedf1f9f33c872d18c0ccd70842fa815","_id":"@ammoti/image-reducer@0.0.1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-lthsO9DubgYAHCJBM0Rfb6T2H/EfhRced8aIOXzKJb/u5r4TUxxVSvQiQViU2btYBtjmXemz9DOr5eYhXLXPSQ==","shasum":"adcbbaa4a081b911027f21d09c3f3b22837dbbd7","tarball":"https://registry.npmjs.org/@ammoti/image-reducer/-/image-reducer-0.0.1.tgz","fileCount":9,"unpackedSize":18156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuS+sCRA9TVsSAnZWagAAssEP+wRrpEf5mU8UxZNiaO+Y\nI/hc71speGQiivl7gxdX7qBEqEUXlgB6ztEhjvbsyQfB3qx3hX5NcV6+K1YC\nXTV2nmr0F6Z51vrs9lkXJBb0s+zTWX2/hHX5pjpkzOY/bmtIZVfpbftazI1F\ngKm/5pyKO21h2ol5tDB+FxypP8dT6X5dk1jRqjTUK0TgBzPVfr+ylwK4/gq+\nPFbfH9C5qaTMe2GjTn8Y4TrJlsnp4hP9+NpqHcBoeROVr/m/+Kxe+ATPW6yB\nwc3+BTOMYI5zYXFzc7fPLFo7RlycRzXyusdtv0TqFKXARNRpoB6Bfun5WeTn\ns66biiAK3FM6jpiQIFtJVWFwRGVb46ukOclx4oDi7/y3kXSueILIBo/3k7wh\nDw208Tc0yhvyCYXbVB3baDR95Xk+22SOGRScKQi9o+A0hX3x6Hty6DgpRSQQ\nt+kN8GMwaAqyLFW+bbyxs5lrgggwKYqp3Q6SbhSPRjVgfF48Qb8zkslbo22U\ncjdNaGi2vdb2LUqGuS1PKmp4/55fn9jAh+pdsuElDAgtuG+uLk335TU7CMSI\nqXq+U46Wvztr7ohet+pA0a3rLBi4vN8EoYjfc+9wvpT2H/fUREhXekOOiAND\nf+WgG6XWyRu3d7KwMeHLiFteUveFIxNNKHGhab2SOS0PJWKVABcrFsI1bt4S\n34xq\r\n=QQfB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfMw9+0GPX+Oflxvczcb35shWmQl/4RWXmd4e6pSHknAIhAItpD0hmgz0ymmT0zcUEM3IQO5FN+19liXticZqUk/82"}]},"maintainers":[{"name":"ammoti","email":"vahap.yigit@gmail.com"}],"_npmUser":{"name":"ammoti","email":"vahap.yigit@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/image-reducer_0.0.1_1589194667994_0.7653446468947074"},"_hasShrinkwrap":false}},"time":{"created":"2020-05-11T10:57:47.948Z","0.0.1":"2020-05-11T10:57:48.108Z","modified":"2022-04-04T13:50:10.263Z"},"maintainers":[{"name":"ammoti","email":"vahap.yigit@gmail.com"}],"description":"Image Reducer is a packages which makes easier image compression using imagemin libraries","homepage":"https://github.com/ammoti/image-reducer#readme","keywords":["image-compress","imagemin","image compress","npm","ammoti","typescript"],"repository":{"type":"git","url":"git+https://github.com/ammoti/image-reducer.git"},"author":{"name":"ammoti","email":"vahap.yigit@gmail.com"},"bugs":{"url":"https://github.com/ammoti/image-reducer/issues"},"license":"MIT","readme":"![alt text](https://i.ibb.co/ft9Sxh7/logo.jpg \"Vahap Yiğit\")\n# image-reducer\n\nimage-reducer just a another image compression package powered by [imagemin](https://www.npmjs.com/package/imagemin). It's goal is that bring all imagemin plugin use single package. At this moment its allow just third plugin [mozjpeg, jpegtrani pngquant] I will add more plugin in the future.\n\n![](https://github.com/ammoti/np/workflows/Build/badge.svg) [![](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org/)\n\n## Build Status\n\n![](https://github.com/ammoti/image-reducer/workflows/Build/badge.svg)\n\n## Install\n\nRequires Node >=10.\n\nFrom npm,\n\n```sh\nnpm i image-reducer\n```\n\nFrom [Github Package Registry](https://github.com/ammoti/image-reducer/packages). ([Guide](https://help.github.com/en/github/managing-packages-with-github-packages/configuring-npm-for-use-with-github-packages)).\n\nType definitions are bundled with this package.\n\n## Usage\n\nMain functions taking three parameters, First one input you can give a string array or directly file path does not matter. second is destination after compression where files will be stored, and third one is the algorithm array which is compression algorithm. And return a Promise.\n\nCurrently pngquant using quality: [0.2, 0.5] and mozjpeg using 65 I will add options parameter in the future commits.\n\n```sh\nmain(input: string | string[], destination: string, compressMethod: CompressType[]): Promise<CompressReport[]>;\n```\n### Example\nI put a test file under **example** folder you can check it.\n\n#### Contribution\nAll contributions and issues are welcome.\n\n## Licence\n\nMIT &copy; [ammoti](https://twitter.com/@usamevahap)\n","readmeFilename":"README.md"}