{"_id":"lqip","_rev":"7-864772f9ecc7b87776ee21481c2eab86","name":"lqip","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"lqip","version":"1.0.0","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","_id":"lqip@1.0.0","_npmVersion":"5.0.3","_nodeVersion":"7.9.0","_npmUser":{"name":"zouhir","email":"zouhir@zouhir.org"},"dist":{"integrity":"sha512-fmXK46pZp97KXfOqWdODTPYbAvJqetgC4Hxfwmd8/3K3zdQSClbDjE7MhPwB2xTPGNnizF2gPYHNnPOdulJPrA==","shasum":"c0bb02d85c4d3f7a358314afcdfb952ca78a78b7","tarball":"https://registry.npmjs.org/lqip/-/lqip-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBLOOlTy6KxyjVFTYB7d8VgNz26j9Im9NHm2j+Iex4dHAiEAvGbq/Ikp7I5Kbmz8Y3NB31gkujRqW5oFfJhfQ/KIF9w="}]},"maintainers":[{"name":"zouhir","email":"zouhir@zouhir.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lqip-1.0.0.tgz_1497915016052_0.6025858400389552"},"directories":{}},"1.1.0":{"name":"lqip","version":"1.1.0","description":"Low Quality Image Placeholders (LQIP) Module for Node","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/zouhir/lqip.git"},"keywords":["lqip","cli","node","nodecli","images","blur","blurry","webpack"],"author":{"name":"Zouhir Chahoud"},"license":"MIT","bugs":{"url":"https://github.com/zouhir/lqip/issues"},"homepage":"https://github.com/zouhir/lqip#readme","dependencies":{"sharp":"^0.18.1"},"devDependencies":{"chai":"^4.0.2","chai-as-promised":"^7.0.0","mocha":"^3.4.2","mock-fs":"^4.4.1"},"gitHead":"ea9c3e01b467d6d89db1f1f40aa4043a693bc03f","_id":"lqip@1.1.0","_npmVersion":"5.0.3","_nodeVersion":"7.9.0","_npmUser":{"name":"zouhir","email":"zouhir@zouhir.org"},"dist":{"integrity":"sha512-mhG18Z43Qc91u1ZtxMA9qKZnvRNPtmIQN+K9o+oc/Ar6aMjQVLJXxJ08jlN5AWk0Jw8UTJ5VkcM0lnMDwB/ffA==","shasum":"df210b1bdf2cf9b69859f1faf67d43b32b7658d1","tarball":"https://registry.npmjs.org/lqip/-/lqip-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCH/QBS1VU6t4o13b8Z/WEMsT4LqwTwISUmp1r5mbTgAQIgTx4YqH4a6iv+VQhcH3VLEuCjYy2evQUQuvy9h/8IP+w="}]},"maintainers":[{"name":"zouhir","email":"zouhir@zouhir.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lqip-1.1.0.tgz_1498607405563_0.42037646588869393"},"directories":{}},"2.0.0":{"name":"lqip","version":"2.0.0","description":"Low Quality Image Placeholders (LQIP) Module for Node","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/zouhir/lqip.git"},"keywords":["lqip","cli","node","nodecli","images","blur","blurry","webpack"],"author":{"name":"Zouhir Chahoud"},"license":"MIT","bugs":{"url":"https://github.com/zouhir/lqip/issues"},"homepage":"https://github.com/zouhir/lqip#readme","dependencies":{"node-vibrant":"^3.0.0-alpha.2","sharp":"^0.18.4"},"devDependencies":{"chai":"^4.0.2","chai-as-promised":"^7.0.0","mocha":"^3.4.2","mock-fs":"^4.4.1"},"gitHead":"cd65d87cb011851aa1a61e7947f7d449de7c6320","_id":"lqip@2.0.0","_npmVersion":"5.4.2","_nodeVersion":"7.9.0","_npmUser":{"name":"zouhir","email":"zouhir@zouhir.org"},"dist":{"integrity":"sha512-uMQkKfTdYS0WLWnmkAXZMacIyIQbysbjp8vPTcUowj8NqGT1qRwv3f4C6N3VPr7POMTpdiCmUmRvMZw0aK9ygA==","shasum":"e8afef54dd3f97ca94e1d125b5a96c8cdc541e31","tarball":"https://registry.npmjs.org/lqip/-/lqip-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBoEVgDtXez/MXDJGqT6VHx8yK7caDfY5Rg1dOwA3MjdAiEAhLmO6he6iYAxVV3P4RKYXdXE8rpZnTXSbHjyqgPQwcE="}]},"maintainers":[{"name":"zouhir","email":"zouhir@zouhir.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lqip-2.0.0.tgz_1507434478339_0.5063452937174588"},"directories":{}},"2.0.1":{"name":"lqip","version":"2.0.1","description":"Low Quality Image Placeholders (LQIP) Module for Node","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/zouhir/lqip.git"},"keywords":["lqip","cli","node","nodecli","images","blur","blurry","webpack"],"author":{"name":"Zouhir Chahoud"},"license":"MIT","bugs":{"url":"https://github.com/zouhir/lqip/issues"},"homepage":"https://github.com/zouhir/lqip#readme","dependencies":{"lodash.sortby":"^4.7.0","node-vibrant":"^3.0.0-alpha.2","sharp":"^0.18.4"},"devDependencies":{"chai":"^4.0.2","chai-as-promised":"^7.0.0","mocha":"^3.4.2","mock-fs":"^4.4.1"},"gitHead":"74dfbc7a29a40a9f04d643d190a13d549e3ab6a7","_id":"lqip@2.0.1","_npmVersion":"5.4.2","_nodeVersion":"7.9.0","_npmUser":{"name":"zouhir","email":"zouhir@zouhir.org"},"dist":{"integrity":"sha512-SqIE1uT6ajHBt6kZF5nvyCG6nhgltohH2/y4yufWvon0d5ETiGzET6BlLXPCsdBzwTSzJ2Vq22yx85yTRgMINA==","shasum":"e6149a0c97d9c07e9abac13ef6bec311e023268d","tarball":"https://registry.npmjs.org/lqip/-/lqip-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGzSmdGPUOnGHzTVxOTftG+LkJiDu6R0D1XURFcajWc4AiEAh6xERBBdefrhYNvqUNgudl0T7gqQXAKsMs538goGjG4="}]},"maintainers":[{"name":"zouhir","email":"zouhir@zouhir.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lqip-2.0.1.tgz_1507976071381_0.6731317522935569"},"directories":{}},"2.0.2":{"name":"lqip","version":"2.0.2","description":"Low Quality Image Placeholders (LQIP) Module for Node","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/zouhir/lqip.git"},"keywords":["lqip","cli","node","nodecli","images","blur","blurry","webpack"],"author":{"name":"Zouhir Chahoud"},"license":"MIT","bugs":{"url":"https://github.com/zouhir/lqip/issues"},"homepage":"https://github.com/zouhir/lqip#readme","dependencies":{"lodash.sortby":"^4.7.0","node-vibrant":"^3.0.0-alpha.2","sharp":"^0.18.4"},"devDependencies":{"chai":"^4.0.2","chai-as-promised":"^7.0.0","mocha":"^3.4.2","mock-fs":"^4.4.1"},"gitHead":"03cf1eb25bec062147499d2503a68a05f9a4059c","_id":"lqip@2.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.8.1","_npmUser":{"name":"zouhir","email":"zouhir@zouhir.org"},"dist":{"integrity":"sha512-ubJbERcdju4kj7ZSmF1k7ev1Os2ecjpnKclCTqhcLtPx61qeP+bgSsxkN84Hjsgsm9Rvegxz0KRSN8JPx26w9Q==","shasum":"c1cda335c0640845612cdb295786bc20593f7b20","tarball":"https://registry.npmjs.org/lqip/-/lqip-2.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICW3eJaDO/XImTn1Xf20AnM7NX2o5jhxT6tPpwYGKng7AiEAu4ULVICMTpT1rhuxPpAGV5SATCJzDoLwbuLguBJpZmE="}]},"maintainers":[{"name":"zouhir","email":"zouhir@zouhir.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lqip-2.0.2.tgz_1510807482473_0.7242343241814524"},"directories":{}},"2.0.3":{"name":"lqip","version":"2.0.3","description":"Low Quality Image Placeholders (LQIP) Module for Node","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/zouhir/lqip.git"},"keywords":["lqip","cli","node","nodecli","images","blur","blurry","webpack"],"author":{"name":"Zouhir Chahoud"},"license":"MIT","bugs":{"url":"https://github.com/zouhir/lqip/issues"},"homepage":"https://github.com/zouhir/lqip#readme","dependencies":{"lodash.sortby":"^4.7.0","node-vibrant":"^3.0.0-alpha.2","sharp":"^0.20.0"},"devDependencies":{"chai":"^4.0.2","chai-as-promised":"^7.0.0","mocha":"^3.4.2","mock-fs":"^4.4.1"},"gitHead":"11f5852805e72cbbaf49e6499e5d180627c64d7c","_id":"lqip@2.0.3","_npmVersion":"6.0.1","_nodeVersion":"10.0.0","_npmUser":{"name":"zouhir","email":"zouhir@zouhir.org"},"dist":{"integrity":"sha512-isgk595QFRMYMVunec/8Wq2DtsjXJUrJvsFPYw2+ofQbe6o2sjJYhCSROSr+X/FYTJ/S4okn2T6hStHvhYdLIg==","shasum":"006f5e79edf0d6fef8b3dfdc132595734e928987","tarball":"https://registry.npmjs.org/lqip/-/lqip-2.0.3.tgz","fileCount":16,"unpackedSize":468122,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBdBzCRA9TVsSAnZWagAA10kQAJpf+kEkcGETJzLKMhEn\n3IMz/agplq2O9Q2JmOZPz/W2sxvBAr5buajbOzYaHSoZU2HUr55ZSTCn/q04\nnd0TRJbVJjsOIKPK1uek9/dI9LmZFlJX8qPshvYS+m5KEaJmRnUfjXL1My4P\nw7qVfVo/01MVL5UICb2hHiRH3y6qcnN09QtkqE2ICY33RpnQaXb6IuC3CMqE\nKrh4id4C8HvIf1eg2jUFmUV2Hd3VqeMVQVxuHFak9F5QQjRhQhiwILLa0BMj\nHeshNngghX7F5lqgjfQQ29OcAbA6ZSOyEIWQcVjWujKL/Ws7T50Pin0LDD6p\nVHX85b/f8lV5E6Vnpxij9yp7vXtlh2+NuHPXJoTcgyQvAIgpSMQUTJGfwfIr\nc2ZPthL7Cy9it7i29MCYPF+BjRkhSACzOYpPXPOWtgyMhtjH5oOVAHyCGg7X\nROREDw8HkduSh3tygdAcAuvjmA/0ADoYs4om+TlNE/Ko9uVsoTR4AXpO2dT3\nY976DSaR7lXoGJ61eTLwbOBDgpzEaOdDXvOUV+0fEEfbl7CbDqWQe1qVAbFc\nInCYuzK0f9HmpFRTeoM3ixI1PnGhbRzabZLV8ulM/h8PDtIb8KbYQQbvrbZ6\nS+9Poqft0d6tdV2pC75yafdutTgu2dRpaiXMQxtBho+7w8rbAGeVw7j5O6xa\niOwl\r\n=8QeK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGAb+DGyiSB0Q3m1bQKpynmArnhc892Tg+QDfPovXOZ0AiAJKZaHCSx/GZm9WXkikZAL9rELLtpb81UerlwxnHK5Jw=="}]},"maintainers":[{"name":"zouhir","email":"zouhir@zouhir.org"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lqip_2.0.3_1527107698036_0.32152847989440114"},"_hasShrinkwrap":false},"2.1.0":{"name":"lqip","version":"2.1.0","description":"Low Quality Image Placeholders (LQIP) Module for Node","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/zouhir/lqip.git"},"keywords":["lqip","cli","node","nodecli","images","blur","blurry","webpack"],"author":{"name":"Zouhir Chahoud"},"license":"MIT","bugs":{"url":"https://github.com/zouhir/lqip/issues"},"homepage":"https://github.com/zouhir/lqip#readme","dependencies":{"jimp":"^0.2.28","lodash.sortby":"^4.7.0","node-vibrant":"^3.0.0-alpha.2"},"devDependencies":{"chai":"^4.0.2","chai-as-promised":"^7.0.0","mocha":"^3.4.2","mock-fs":"^4.4.1"},"gitHead":"abedc242f01a2cfc5d5b8a62889744db23496568","_id":"lqip@2.1.0","_npmVersion":"6.0.1","_nodeVersion":"10.1.0","_npmUser":{"name":"zouhir","email":"zouhir@zouhir.org"},"dist":{"integrity":"sha512-cnQw+89wUk+GSyeaaUuqeJl0XwpCQDcgXZPDBNnExdnCeVdFIrIVI29tae9GmC09LYgPY0IJZjixG6sdn7IYsQ==","shasum":"e1a9f677bd3d2ccdf904116600ec4c9acfbc397c","tarball":"https://registry.npmjs.org/lqip/-/lqip-2.1.0.tgz","fileCount":16,"unpackedSize":467755,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbVrHBCRA9TVsSAnZWagAAt7wP/271RZsrGH/Bymhdz99U\noyVnU5WD0tgHrR6OhfiKugKW3VxDUesrDJgW1ncDuyQw/iAXnMxuKOFd/fc1\nsaUPuu/ytzt76T4Edveiz/D/XVr18sRdNyy6+qt19gRIKIpdabNFJdGwRfpr\n7wkpJ1HJBLr1KtZwTIF16GNcvD2Y7iUjXfYe+AYvI6uWgWtka1YMAMylISSu\nGw2lAoJWb6uHXKx91vEEMegghtcJfdrC7JDM6UnqahTaCqm/D8/ZnWJFhx+7\nn0O12MRrCaVoJoTWi+R2UdO3HDKWnl1joNLn4RorY9YGmUU4foLr6tKl9+uI\nbXqvQOyL8l99NiGud2ZwG8Fp98LqLk8AhVygJ3mHTOFTX0g41tm/l0DWA0DI\n9EvYLd7542YIFi3KBDX6mm+uHrfhgeDZfNN2zvLmvaNVXXBw+aTQuISHNI4J\ndfQiGFjXwCsxKcHF/5YlZkK7alHioSPGR9E8NWAZnhe26hkRH73kmtLjpcpc\n1SPuqVj4EDc2JXt94G5w1b4Cd5q7EnnS6W0jjuF+I8jRBzUvV7EaxiLdNFC+\n6Hy9iZrcj+cV4nSY319bV3jyeVTk1qP6IcOO9hwpSZWchb9pRXcOPV5DUsak\nxYtl7XQI8tlaryyZmyZ/7FuX4zY6NibHDLPH8m9YYaQvcKLzQqAN2/JZzF4m\nbhNv\r\n=c+PE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbnw4BKAGIN3aqI1usB+r2cPRTSDY16eS4FUGFiPIpygIhALhduX0x2xC1+YM6Xx60s05JKXYpsLRtTYTOGTqaIAXo"}]},"maintainers":[{"name":"zouhir","email":"zouhir@zouhir.org"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lqip_2.1.0_1532408257048_0.8514305199086241"},"_hasShrinkwrap":false}},"readme":"<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/zouhir/lqip/master/_github/logo.png\" width=\"508\">\n</p>\n\n<h4 align=\"center\">LQIP: Low Quality Images Placeholder</h4>\n<p align=\"center\">\n  <a align=\"center\" href=\"https://lqip-loader.firebaseapp.com/\">demo</a>\n</p>\n\n<br />\n<br />\n<p>\n  <img src=\"https://raw.githubusercontent.com/zouhir/lqip/master/_github/installation.png\" width=\"100%\">\n</p>\n\n```\nnpm install --save lqip\n```\n\n<br />\n<p>\n  <img src=\"https://raw.githubusercontent.com/zouhir/lqip/master/_github/example.png\" width=\"100%\" />\n</p>\n\nGenerating Base64 from an image:\n\n```js\nconst lqip = require('lqip');\n\nconst file = `./dest/to/file/zouhir-riding-a-bike.jpg`;\n\nlqip.base64(file).then(res => {\n  console.log(res); // \"data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhY.....\n});\n\n```\n\nGenerating colour palette from an image:\n\n```js\nconst lqip = require('lqip');\n\nconst file = `./dest/to/file/zouhir-riding-a-bike.jpg`;\n\nlqip.palette(file).then(res => {\n  // the response will be sorted from most dominant colour to least\n  console.log(res); //  [ '#628792', '#bed4d5', '#5d4340', '#ba454d', '#c5dce4', '#551f24' ] \n});\n\n```\n<br />\n<p>\n  <img src=\"https://raw.githubusercontent.com/zouhir/lqip/master/_github/api.png\" width=\"100%\" />\n</p>\n\n##### `lqip.base64(filePath: string)`\n\nThis method accepts an image file path, the file has to be one of those formats ['jpeg', 'jpg', 'png'] and returns a Base64 \nimage string with a valid format and ready to be used in web applications such as in <img /> tags source or in CSS properties URLs. \n\n##### `lqip.palette(filePath: string)`\n\nThis method accepts an image file path, and returns an colour palette as an array of HEX colour values. The array that is returned\nis sorted from the most to the least dominant colour.  \n\n<br />\n<p>\n  <img src=\"https://raw.githubusercontent.com/zouhir/lqip/master/_github/inspo.png\" width=\"100%\" />\n</p>\n\n- [Medium web app](https://medium.com/cucumbertown-magazine/the-beginners-guide-to-composition-in-food-photography-how-to-transform-your-food-photos-from-good-39613ab78bf2)\n- [Instagram native mobile app](https://www.instagram.com/)\n- [Polymer shop project](https://shop.polymer-project.org/)\n\n<br />\n<p>\n  <img src=\"https://github.com/zouhir/lqip/blob/master/_github/mentions.png\" width=\"100%\" />\n</p>\n\n- Essential Image Optimization, An eBook by Addy Osmany [link](https://images.guide/)\n\n<br />\n<p>\n  <img src=\"https://raw.githubusercontent.com/zouhir/lqip/master/_github/creds.png\" width=\"100%\" />\n</p>\n\nRelated projects to this would be [lqip-loader for webpack](https://github.com/zouhir/lqip-loader) as well as [lqip-cli](https://github.com/zouhir/lqip-cli).\n\nThanks to contributors and [Colin van Eenige](https://twitter.com/cvaneenige) for his reviews and early testing.\n\nMIT - [Zouhir Chahoud](https://zouhir.org/)\n","maintainers":[{"name":"zouhir","email":"zouhir@zouhir.org"}],"time":{"modified":"2022-05-08T11:46:45.057Z","created":"2017-06-19T23:30:16.217Z","1.0.0":"2017-06-19T23:30:16.217Z","1.1.0":"2017-06-27T23:50:05.674Z","2.0.0":"2017-10-08T03:47:58.483Z","2.0.1":"2017-10-14T10:14:31.553Z","2.0.2":"2017-11-16T04:44:42.650Z","2.0.3":"2018-05-23T20:34:58.150Z","2.1.0":"2018-07-24T04:57:37.231Z"},"license":"MIT","readmeFilename":"README.md","description":"Low Quality Image Placeholders (LQIP) Module for Node","homepage":"https://github.com/zouhir/lqip#readme","keywords":["lqip","cli","node","nodecli","images","blur","blurry","webpack"],"repository":{"type":"git","url":"git+https://github.com/zouhir/lqip.git"},"author":{"name":"Zouhir Chahoud"},"bugs":{"url":"https://github.com/zouhir/lqip/issues"}}