{"_id":"css-b64-images","_rev":"25-75152946304af66cb772e5229d5458ff","name":"css-b64-images","description":"Base64 images in your css","dist-tags":{"latest":"0.2.5"},"versions":{"0.1.0":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"css-b64-images","description":"Base64 images in your css","version":"0.1.0","main":"lib/css-b64-images.js","bin":{"css-b64-images":"bin/css-b64-images"},"repository":{"type":"git","url":"git://github.com/Filirom1/css-base64-images.git"},"dependencies":{"async":"~0.1.22"},"devDependencies":{"mocha":"~1.1.0","should":"~0.6.3"},"scripts":{"test":"mocha"},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"Filirom1","email":"filirom1@gmail.com"},"_id":"css-b64-images@0.1.0","_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18-pre","_defaultsLoaded":true,"dist":{"shasum":"3eb905fe5088fc9e20e9360a9dd0edd248b039ee","tarball":"https://registry.npmjs.org/css-b64-images/-/css-b64-images-0.1.0.tgz","integrity":"sha512-5R30MDsMCyGb0i3thD+UjVK4Oc8KuSEB7UJCD9Aw557/zIwi6uq68e5rQ0ub4qxv322rbajMZjB+v+RPIzFKNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB9gMZbMQ/Ii1AOaI0zd7EToQ2L75qSqI3Z0vX5pUkPvAiEAgzOsAAo6/2irfhluhCJOWMgWoAah9C4n8uCJg5SMt5c="}]},"maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"}]},"0.2.0":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"css-b64-images","description":"Base64 images in your css","version":"0.2.0","main":"lib/css-b64-images.js","bin":{"css-b64-images":"bin/css-b64-images"},"repository":{"type":"git","url":"git://github.com/Filirom1/css-base64-images.git"},"dependencies":{"async":"~0.1.22"},"devDependencies":{"mocha":"~1.1.0","should":"~0.6.3"},"scripts":{"test":"mocha"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"Filirom1","email":"filirom1@gmail.com"},"_id":"css-b64-images@0.2.0","_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.6.18-pre","_defaultsLoaded":true,"dist":{"shasum":"c522ce12322bed54418239f665f91df5315b4f1b","tarball":"https://registry.npmjs.org/css-b64-images/-/css-b64-images-0.2.0.tgz","integrity":"sha512-sZjv+vf7vAUwGEaqbQcuIega0JzhY/P0sks2xzJ0sng+qM6wMTstfHNP5sj6l2DL72R5xtwRzEXjQo1VoMus7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDT72Iw1f4QUoXaOdsZ9qn6zCVJX+yUlmUjTO2Zem/edAiEAlnHZmQTjs7jC/Wu6mc9cbS1s4vg00hbXl4retm+HdqA="}]},"maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"}]},"0.2.1":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"css-b64-images","description":"Base64 images in your css","version":"0.2.1","main":"lib/css-b64-images.js","bin":{"css-b64-images":"bin/css-b64-images"},"repository":{"type":"git","url":"git://github.com/Filirom1/css-base64-images.git"},"dependencies":{"async":"~0.1.22"},"devDependencies":{"mocha":"~1.1.0","should":"~0.6.3"},"scripts":{"test":"mocha"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"Filirom1","email":"filirom1@gmail.com"},"_id":"css-b64-images@0.2.1","_engineSupported":true,"_npmVersion":"1.1.24","_nodeVersion":"v0.6.18-pre","_defaultsLoaded":true,"dist":{"shasum":"b0b354e589e96c5cded087819c6a9aa9414b5c0a","tarball":"https://registry.npmjs.org/css-b64-images/-/css-b64-images-0.2.1.tgz","integrity":"sha512-Uoq+oKXCKR995cw3uPnncQkJYDbpq39Z7zjvqzgJKDquQeDsBwJLHbl7FEDr4ttHG9z5GmOgqZmxtV55lqF0cw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID3BjWqZItO4vmPNjnanrXNLoIIo7CoE5Aci8SzLXekkAiEArHJpKNy0gGEDgzBN4XrUEuloIjhomlbtL2nEDJwTHBo="}]},"maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"}]},"0.2.2":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"css-b64-images","description":"Base64 images in your css","version":"0.2.2","main":"lib/css-b64-images.js","bin":{"css-b64-images":"bin/css-b64-images"},"repository":{"type":"git","url":"https://github.com/Filirom1/css-base64-images.git"},"dependencies":{"async":"~0.1.22"},"devDependencies":{"mocha":"~1.1.0","should":"~0.6.3"},"scripts":{"test":"mocha"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"optionalDependencies":{},"engines":{"node":"*"},"_id":"css-b64-images@0.2.2","dist":{"shasum":"8567039fb3b6da50567e97a7e75e9ac3a0bee7dd","tarball":"https://registry.npmjs.org/css-b64-images/-/css-b64-images-0.2.2.tgz","integrity":"sha512-1HoANx5qSjMpkIpkVOwjv02tvj+6DzedUIvOxqzz4n5fdlqon+T/yVWfRoQSq5w4z4Bt4qWv0vpzbPg48aZfAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG3Tn46NUxUGr9V8PEvS8LD2kiduv4k51Ju2Kd2OP50xAiEAo4FqFBjTol8o9BamSw/O7PIh/KB6nFK1o4tc8FpXQxE="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"filirom1","email":"filirom1@gmail.com"},"maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"}]},"0.2.3":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"css-b64-images","description":"Base64 images in your css","version":"0.2.3","main":"lib/css-b64-images.js","bin":{"css-b64-images":"bin/css-b64-images"},"repository":{"type":"git","url":"https://github.com/Filirom1/css-base64-images.git"},"dependencies":{"async":"~0.1.22"},"devDependencies":{"mocha":"~1.1.0","should":"~0.6.3"},"scripts":{"test":"mocha"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"optionalDependencies":{},"engines":{"node":"*"},"_id":"css-b64-images@0.2.3","dist":{"shasum":"0ffb4a2cef8f0cdedd5baa3a627cf4ddc18fd427","tarball":"https://registry.npmjs.org/css-b64-images/-/css-b64-images-0.2.3.tgz","integrity":"sha512-U5J73S76RxFWYgfd0MeeW4N+EUIBWB+wRfeT6t/OEB553ZeYfhnimSD1QfbcaSbHDS9JR07u6t/u5Fm9yjnPZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB88ojH1rLvIpdUP/URLywjscI5buFea2yzYtf1ePI7sAiEAkYFYcgDxxdr8L8/4LYoQL2HuBLJqj4x9ojAKYiCprLs="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"filirom1","email":"filirom1@gmail.com"},"maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"}]},"0.2.4":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"css-b64-images","description":"Base64 images in your css","version":"0.2.4","main":"lib/css-b64-images.js","bin":{"css-b64-images":"bin/css-b64-images"},"repository":{"type":"git","url":"https://github.com/Filirom1/css-base64-images.git"},"dependencies":{"async":"~0.1.22"},"devDependencies":{"mocha":"~1.1.0","should":"~0.6.3"},"scripts":{"test":"mocha"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/Filirom1/css-base64-images/issues"},"homepage":"https://github.com/Filirom1/css-base64-images","_id":"css-b64-images@0.2.4","dist":{"shasum":"df552d99774f7cb884f361f91559dab51c76e440","tarball":"https://registry.npmjs.org/css-b64-images/-/css-b64-images-0.2.4.tgz","integrity":"sha512-/Xf1hFSf9VY2pmIA8pzFYoNzNXXKz3qLkZXMci4EiO9WOQlI4KyvHvTEtJivbsBTr/J2ZSKmyt4P91fIJcPVKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCMvPBWqu3iLWunmVgF4aPS2zyKzjr9+kQQTgcW6SDvAIhALmY1VT1Qf1YnS0rQZyop+OiZ1LWbeurkj/NIBmgwjRN"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"filirom1","email":"filirom1@gmail.com"},"maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"}]},"0.2.5":{"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"name":"css-b64-images","description":"Base64 images in your css","version":"0.2.5","main":"lib/css-b64-images.js","bin":{"css-b64-images":"bin/css-b64-images"},"repository":{"type":"git","url":"https://github.com/Filirom1/css-base64-images.git"},"dependencies":{},"devDependencies":{"mocha":"~1.1.0","should":"~0.6.3"},"scripts":{"test":"mocha"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"optionalDependencies":{},"engines":{"node":"*"},"gitHead":"c657b417e377bca8cd4440e0b6518d02ef28d175","bugs":{"url":"https://github.com/Filirom1/css-base64-images/issues"},"homepage":"https://github.com/Filirom1/css-base64-images","_id":"css-b64-images@0.2.5","_shasum":"42005d83204b2b4a5d93b6b1a5644133b5927a02","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"filirom1","email":"filirom1@gmail.com"},"maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"}],"dist":{"shasum":"42005d83204b2b4a5d93b6b1a5644133b5927a02","tarball":"https://registry.npmjs.org/css-b64-images/-/css-b64-images-0.2.5.tgz","integrity":"sha512-TgQBEdP07adhrDfXvI5o6bHGukKBNMzp2Ngckc/6d09zpjD2gc1Hl3Ca1CKgb8FXjHi88+Phv2Uegs2kTL4zjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYq8+rkGaYHLRDS5dpmew1ntYNYMyXU8GRlkeivCUz9AiEAx37LPP0c/IwGfbrfAjGg7j24m1rgcgZRw/C6jgNloJw="}]}}},"readme":"[![build status](https://secure.travis-ci.org/Filirom1/css-base64-images.png)](http://travis-ci.org/Filirom1/css-base64-images)\ncss-base64-images\n=================\n\nBase64 images in your css file.\n\n![Base64](https://github.com/Filirom1/css-base64-images/raw/master/draft.png)\n\nTransform this:\n\n    .single-quote {\n      background: url('../img/background-pattern.gif');\n    }\n\ninto\n\n    .single-quote {\n      background: url('data:image/gif;base64,R0lGODlhBgAGAIAAAObm5vLy8iH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpFMEY0NTFERjVEQ0ExMUUwOURGQ0Y2NjAyQTkzMUQ2OSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpFMEY0NTFFMDVEQ0ExMUUwOURGQ0Y2NjAyQTkzMUQ2OSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkUwRjQ1MURENURDQTExRTA5REZDRjY2MDJBOTMxRDY5IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkUwRjQ1MURFNURDQTExRTA5REZDRjY2MDJBOTMxRDY5Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAAAAAAAsAAAAAAYABgAAAgqMDYcaqX6AnKAAADs=');\n    }\n\nOnly works with CSS files.\n\nWorks with:\n\n* single quotes: url('../img/background-pattern.gif');\n* double quotes: url(\"../img/background-pattern.gif\");\n* absolute URL: url(\"/img/background-pattern.gif\"); but you must specify a `root` path\n\nDo not work with (a warning is shown, but the process continue)\n\n* File bigger than 4Ko (configurable)\n* external urls: url(\"http://my-company.ext/img/background-pattern.gif\");\n* not found images\n\n## Install\n\n    npm install -g css-b64-images\n\n## Usage\n\n    cd /your/www/root/dir\n    css-b64-images css/styles.css > css/style.optimized.css\n\n## As a library\n\n### From File\n\nfromFile(cssFile, root, [options,] cb)\n\nYou must specify the `root` path for absolute URLs to work.\n\n    var b64img = require('css-b64-images');\n\n    b64img.fromFile('/your/www/root/dir/css/your-stylesheet.css', '/your/www/root/dir/', function(err, css){\n      if(err) console.error('Error:', err);\n      console.log(css);\n    });\n\n### From String\n\nfromString(css, relativePath, rootPath, [options,] cb)\n\n    var b64img = require('css-b64-images');\n    var css = fs.readFileSync('/your/www/root/dir/css/your-stylesheet.css');\n\n    b64img.fromString(css, '/your/www/root/dir/css/', '/your/www/root/dir/', function(err, css){\n      if(err) console.error('Error:', err);\n      console.log(css);\n    });\n\n### Options\n\n* maxSize: (default 4096) bigger images are not base64 in the CSS\n\n\n## LICENSE\n\nMIT\n","maintainers":[{"name":"Filirom1","email":"filirom1@gmail.com"},{"name":"filirom1","email":"filirom1@gmail.com"}],"time":{"modified":"2022-06-14T04:28:09.627Z","created":"2012-06-11T12:25:48.674Z","0.1.0":"2012-06-11T12:25:49.160Z","0.2.0":"2012-06-18T16:28:16.568Z","0.2.1":"2012-06-25T17:17:35.836Z","0.2.2":"2013-01-23T15:31:55.627Z","0.2.3":"2013-03-26T13:45:29.845Z","0.2.4":"2014-02-06T10:22:44.810Z","0.2.5":"2014-11-07T15:43:10.362Z"},"author":{"name":"Filirom1","email":"filirom1@gmail.com"},"repository":{"type":"git","url":"https://github.com/Filirom1/css-base64-images.git"},"users":{"m42am":true,"stv":true,"m4s0":true,"xtx1130":true},"readmeFilename":"README.md","homepage":"https://github.com/Filirom1/css-base64-images","bugs":{"url":"https://github.com/Filirom1/css-base64-images/issues"}}