{"_id":"gulp-base64","_rev":"3869481","name":"gulp-base64","description":"gulp task to encode images to data URI","dist-tags":{"latest":"0.1.3"},"maintainers":[{"name":"wenqer","email":""}],"time":{"modified":"2025-09-01T00:54:23.000Z","created":"2014-02-03T17:19:18.282Z","0.1.3":"2015-05-27T19:19:07.211Z","0.1.2":"2014-09-12T09:49:30.443Z","0.1.1":"2014-07-09T09:43:18.509Z","0.0.3":"2014-02-04T15:38:33.266Z","0.0.2":"2014-02-04T13:58:31.422Z","0.0.1":"2014-02-03T17:19:18.282Z"},"users":{},"author":{"name":"Yaroslav 2gis"},"repository":{"type":"git","url":"git://github.com/Wenqer/gulp-base64.git"},"versions":{"0.1.3":{"name":"gulp-base64","version":"0.1.3","description":"gulp task to encode images to data URI","main":"index.js","homepage":"http://github.com/Wenqer/gulp-base64","repository":{"type":"git","url":"git://github.com/Wenqer/gulp-base64.git"},"keywords":["gulpplugin","data-uri","base64"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Yaroslav 2gis"},"license":"MIT","dependencies":{"through2":"~0.4.1","extend":"~1.2.1","async":"~0.2.10","mime":"~1.2.11","request":"~2.33.0","buffers":"~0.1.1"},"gitHead":"e68b16ed02deab92a2cf438b8d5c2f4b449446d5","bugs":{"url":"https://github.com/Wenqer/gulp-base64/issues"},"_id":"gulp-base64@0.1.3","_shasum":"164bd9d4f336dc16d669b331cebc139343579145","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.12.2","_npmUser":{"name":"wenqer","email":"wenqeer@gmail.com"},"maintainers":[{"name":"wenqer","email":""}],"dist":{"shasum":"164bd9d4f336dc16d669b331cebc139343579145","size":5121,"noattachment":false,"key":"/gulp-base64/-/gulp-base64-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-base64/download/gulp-base64-0.1.3.tgz"},"directories":{},"publish_time":1432754347211,"_hasShrinkwrap":false,"_cnpm_publish_time":1432754347211,"_cnpmcore_publish_time":"2021-12-17T00:39:49.918Z"},"0.1.2":{"name":"gulp-base64","version":"0.1.2","description":"gulp task to encode images to data URI","main":"index.js","homepage":"http://github.com/Wenqer/gulp-base64","repository":{"type":"git","url":"git://github.com/Wenqer/gulp-base64.git"},"keywords":["gulpplugin","data-uri","base64"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Yaroslav 2gis"},"license":"MIT","dependencies":{"through2":"~0.4.1","extend":"~1.2.1","async":"~0.2.10","mime":"~1.2.11","request":"~2.33.0","buffers":"~0.1.1"},"gitHead":"645a7ed9530f794a897b6aa64c3bfa8d54a5c25b","bugs":{"url":"https://github.com/Wenqer/gulp-base64/issues"},"_id":"gulp-base64@0.1.2","_shasum":"dd5a1c7761c46e8c38133272c5fbb2369a81c1e9","_from":".","_npmVersion":"2.0.0-beta.0","_npmUser":{"name":"wenqer","email":"wenqeer@gmail.com"},"maintainers":[{"name":"wenqer","email":""}],"dist":{"shasum":"dd5a1c7761c46e8c38133272c5fbb2369a81c1e9","size":5107,"noattachment":false,"key":"/gulp-base64/-/gulp-base64-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-base64/download/gulp-base64-0.1.2.tgz"},"directories":{},"publish_time":1410515370443,"_hasShrinkwrap":false,"_cnpm_publish_time":1410515370443,"_cnpmcore_publish_time":"2021-12-17T00:39:50.091Z"},"0.1.1":{"name":"gulp-base64","version":"0.1.1","description":"gulp task to encode images to data URI","main":"index.js","homepage":"http://github.com/Wenqer/gulp-base64","repository":{"type":"git","url":"git://github.com/Wenqer/gulp-base64.git"},"keywords":["gulpplugin","data-uri","base64"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Yaroslav 2gis"},"license":"MIT","dependencies":{"through2":"~0.4.1","extend":"~1.2.1","async":"~0.2.10","mime":"~1.2.11","request":"~2.33.0","buffers":"~0.1.1"},"gitHead":"3b21859497896b4a4be785850394ce1d3f4a7f2d","bugs":{"url":"https://github.com/Wenqer/gulp-base64/issues"},"_id":"gulp-base64@0.1.1","_shasum":"ca8a3b37461d0de9d18a9b4a52f99ceb06bc2c92","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"wenqer","email":"wenqeer@gmail.com"},"maintainers":[{"name":"wenqer","email":""}],"dist":{"shasum":"ca8a3b37461d0de9d18a9b4a52f99ceb06bc2c92","size":5144,"noattachment":false,"key":"/gulp-base64/-/gulp-base64-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-base64/download/gulp-base64-0.1.1.tgz"},"directories":{},"publish_time":1404898998509,"_hasShrinkwrap":false,"_cnpm_publish_time":1404898998509,"_cnpmcore_publish_time":"2021-12-17T00:39:50.303Z"},"0.0.3":{"name":"gulp-base64","version":"0.0.3","description":"gulp task to encode images to data-uti","main":"index.js","homepage":"http://github.com/Wenqer/gulp-base64","repository":{"type":"git","url":"git://github.com/Wenqer/gulp-base64.git"},"keywords":["gulpplugin","data-uri","base64"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Yaroslav 2gis"},"license":"MIT","dependencies":{"through2":"~0.4.1","extend":"~1.2.1","async":"~0.2.10","mime":"~1.2.11","request":"~2.33.0","buffers":"~0.1.1"},"bugs":{"url":"https://github.com/Wenqer/gulp-base64/issues"},"_id":"gulp-base64@0.0.3","dist":{"shasum":"c5d7d199fd804ad1e701cae6d80ae93ecb915046","size":4790,"noattachment":false,"key":"/gulp-base64/-/gulp-base64-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-base64/download/gulp-base64-0.0.3.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"wenqer","email":"wenqeer@gmail.com"},"maintainers":[{"name":"wenqer","email":""}],"directories":{},"publish_time":1391528313266,"_hasShrinkwrap":false,"_cnpm_publish_time":1391528313266,"_cnpmcore_publish_time":"2021-12-17T00:39:50.509Z"},"0.0.2":{"name":"gulp-base64","version":"0.0.2","description":"gulp task to encode images to data-uti","main":"index.js","homepage":"http://github.com/Wenqer/gulp-base64","repository":{"type":"git","url":"git://github.com/Wenqer/gulp-base64.git"},"keywords":["gulpplugin","data-uri","base64"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Yaroslav 2gis"},"license":"MIT","dependencies":{"through2":"~0.4.1","extend":"~1.2.1","async":"~0.2.10","mime":"~1.2.11","request":"~2.33.0","buffers":"~0.1.1"},"bugs":{"url":"https://github.com/Wenqer/gulp-base64/issues"},"_id":"gulp-base64@0.0.2","dist":{"shasum":"05d4983ebdb2f75c049c3c48ed4079a0a73b4a3b","size":4453,"noattachment":false,"key":"/gulp-base64/-/gulp-base64-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-base64/download/gulp-base64-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"wenqer","email":"wenqeer@gmail.com"},"maintainers":[{"name":"wenqer","email":""}],"directories":{},"publish_time":1391522311422,"_hasShrinkwrap":false,"_cnpm_publish_time":1391522311422,"_cnpmcore_publish_time":"2021-12-17T00:39:50.748Z"},"0.0.1":{"name":"gulp-base64","version":"0.0.1","description":"gulp task to encode images to data-uti","main":"index.js","homepage":"http://github.com/Wenqer/gulp-base64","repository":{"type":"git","url":"git://github.com/Wenqer/gulp-base64.git"},"keywords":["gulpfriendly","gulpplugin","data-uri","base64"],"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Yaroslav 2gis"},"license":"MIT","dependencies":{"through2":"~0.4.1","extend":"~1.2.1","async":"~0.2.10","mime":"~1.2.11","request":"~2.33.0","buffers":"~0.1.1"},"bugs":{"url":"https://github.com/Wenqer/gulp-base64/issues"},"_id":"gulp-base64@0.0.1","dist":{"shasum":"a3aedce91e17baa8b637140acca933911ed7c0ff","size":4496,"noattachment":false,"key":"/gulp-base64/-/gulp-base64-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/gulp-base64/download/gulp-base64-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"wenqer","email":"wenqeer@gmail.com"},"maintainers":[{"name":"wenqer","email":""}],"directories":{},"publish_time":1391447958282,"_hasShrinkwrap":false,"_cnpm_publish_time":1391447958282,"_cnpmcore_publish_time":"2021-12-17T00:39:50.974Z"}},"readme":"gulp-base64\n===========\n\nGulp task for converting all files found within a stylesheet (those within a url( ... ) declaration) into base64-encoded data URI strings.\n\n## Example usage\n```js\nvar gulp = require('gulp');\nvar base64 = require('./build/gulp-base64');\n\n//basic example\ngulp.task('build', function () {\n    return gulp.src('./css/*.css')\n        .pipe(base64())\n        .pipe(concat('main.css'))\n        .pipe(gulp.dest('./public/css'));\n});\n...\n//example with options\ngulp.task('build', function () {\n    return gulp.src('./css/*.css')\n        .pipe(base64({\n            baseDir: 'public',\n            extensions: ['svg', 'png', /\\.jpg#datauri$/i],\n            exclude:    [/\\.server\\.(com|net)\\/dynamic\\//, '--live.jpg'],\n            maxImageSize: 8*1024, // bytes\n            debug: true\n        }))\n        .pipe(concat('main.css'))\n        .pipe(gulp.dest('./public/css'));\n});\n\n```\n## Options\n\n  - `baseDir`  (String)  \n    If you have absolute image paths in your stylesheet, the path specified\n    in this option will be used as the base directory (relative to gulpfile).\n\n  - `extensions`  (Array of `String` or `RegExp`s)  \n    Proccess only specified extensions.  \n    Strings are matched against file-extension only, while RegExps are tested against the raw URL value.\n\n  - `exclude`  (Array of `String` or `RegExp`s)  \n    Skip files with URLs that match these patterns.  \n    Unlike with the `extensions` option Strings are sub-string matched against the whole URL value.\n\n  - `maxImageSize` (Number)  \n    Maximum filesize in bytes for changing image to base64.\n\n  - `debug` (Boolean)  \n    Enable log to console.\n","_attachments":{},"homepage":"http://github.com/Wenqer/gulp-base64","bugs":{"url":"https://github.com/Wenqer/gulp-base64/issues"},"license":"MIT"}