{"name":"image-source-loader","version":"0.2.4","description":"image source loader for webpack","license":"MIT","repository":{"type":"git","url":"git+https://github.com/alibaba/rax.git"},"engines":{"npm":">=3.0.0"},"keywords":["base64","image","webpack","loader","img","src","img src"],"main":"lib/index.js","author":{"name":"wssgcg1213","email":"i@zeroling.com"},"dependencies":{"image-size":"^0.5.1"},"bugs":{"url":"https://github.com/alibaba/rax/issues"},"homepage":"https://github.com/alibaba/rax#readme","_id":"image-source-loader@0.2.4","scripts":{},"_shasum":"cbf4ce0ed6f12e9823d36f412b1e74aad7abc5bd","_from":".","_npmVersion":"4.2.0","_nodeVersion":"4.6.2","_npmUser":{"name":"yuanyan","email":"yuanyan.cao@gmail.com"},"maintainers":[{"name":"yuanyan","email":"yuanyan.cao@gmail.com"},{"name":"zeroling","email":"wssgcg1213@qq.com"}],"dist":{"shasum":"cbf4ce0ed6f12e9823d36f412b1e74aad7abc5bd","tarball":"http://registry-npm.ywwl.com/image-source-loader/download/image-source-loader-0.2.4.tgz","integrity":"sha512-HCA1TuhO4eeyX3SNrNnsucDJlkOMvwk1uSpoe9RBDu2h++lBwmiq6lBCRJo3Z8nKFX6M0deh1xFAYNsrEdJTcQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCfC/H4dp4E8DZepwyDqgHHqJ5XEbEook4TAyn5jlnLwIge3kv+rkUtQ7m//WRsi2OGMg0djUwHyiRvVREt60VsHo="}],"size":2665,"noattachment":false,"key":"/image-source-loader/-/image-source-loader-0.2.4.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/image-source-loader-0.2.4.tgz_1489648013184_0.05104700801894069"},"directories":{},"readme":"# image source loader for webpack\n\nA source is an object contains: base64 uri, width and height of a image. eg: `{ uri: 'data:image/png;base64, iVBxxxx...', width: 2, height: 3 }`\n\nIf your looking for a loader that simple encodes as base64 try [base64-loader](https://github.com/antelle/base64-loader)\n\n## Installation\n\n`npm install image-source-loader`\n\n## Usage\n\n``` javascript\nconst source = require(\"image-source!./1x1.png\");\n\n// source => {\n//   uri: \"data:image/png;base64,iVBORw0KGgoAAAANS...\",\n//   width: 1,\n//   height: 1\n// }\n```\n\n[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)\n\n## Support\n\nSee ./mimes.json for currently supported extensions/mimes.  \nCreate a Pull Request if you need more added.  \n","publish_time":1489648014961,"_cnpm_publish_time":1489648014961,"dist-tags":{"latest":"0.6.5"}}